changeset 537:672b1e7ccfda

EOF return value of stream_read_char() changed 0 => -0x100
author arpi_esp
date Fri, 20 Apr 2001 01:07:14 +0000
parents 3c9b3ce721f0
children eea574dff0fd
files stream.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream.c	Thu Apr 19 23:50:08 2001 +0000
+++ b/stream.c	Fri Apr 20 01:07:14 2001 +0000
@@ -39,9 +39,9 @@
   return len;
 }
 
-inline unsigned int stream_read_char(stream_t *s){
+inline int stream_read_char(stream_t *s){
   return (s->buf_pos<s->buf_len)?s->buffer[s->buf_pos++]:
-    (stream_fill_buffer(s)?s->buffer[s->buf_pos++]:0);
+    (stream_fill_buffer(s)?s->buffer[s->buf_pos++]:-256);
 //  if(s->buf_pos<s->buf_len) return s->buffer[s->buf_pos++];
 //  stream_fill_buffer(s);
 //  if(s->buf_pos<s->buf_len) return s->buffer[s->buf_pos++];