richedit: Unsigned cast char to avoid EOF equality.
This commit is contained in:
parent
930f8f5af6
commit
e6c3a2beee
|
@ -109,7 +109,7 @@ int _RTFGetChar(RTF_Info *info)
|
|||
if (stream->dwSize == 0)
|
||||
return EOF;
|
||||
}
|
||||
ch = stream->buffer[stream->dwUsed++];
|
||||
ch = (unsigned char)stream->buffer[stream->dwUsed++];
|
||||
if (!ch)
|
||||
return EOF;
|
||||
return ch;
|
||||
|
|
Loading…
Reference in New Issue