I must correct myself. It's more likely the return value of fgetc(), after having been assigned to a char, is being sign-extended when that char is compared to the in EOF, so that the comparison becomes a comparison between 0xffffffff and 0xffffffff.
James Bailie wrote:
...EOF is getting cast to a char implicitly in the comparison, so the comparison becomes a comparison between 0xff and 0xff.
-- James Bailie <[email protected]> http://www.mammothcheese.ca _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[email protected]"

