Changeset 444

Show
Ignore:
Timestamp:
07/19/10 09:35:14 (2 months ago)
Author:
solar
Message:

Type error resulting in improper handling of values > 127 and EOF.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/functions/stdio/fgetc.c

    r437 r444  
    2121    if ( stream->ungetidx > 0 ) 
    2222    { 
    23         return stream->ungetbuf[ --(stream->ungetidx) ]; 
     23        return (unsigned char)stream->ungetbuf[ --(stream->ungetidx) ]; 
    2424    } 
    25     return stream->buffer[stream->bufidx++]; 
     25    return (unsigned char)stream->buffer[stream->bufidx++]; 
    2626} 
    2727