Cast EOF to get a proper comparison.
On PowerPC, and maybe some other architectures, 'char' is unsigned. Comparing an unsigned char with a signed int (-1) is always false. To fix this, down-cast EOF to a char. llvm-svn: 228909
Loading
Please sign in to comment