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 <ji...@mammothcheese.ca>
http://www.mammothcheese.ca
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to