Serge,
ubuntu@panda-test:~$ gcc -o test test.c ubuntu@panda-test:~$ ./test char is unsigned
Comparing a char to -1 is undefined, so perhaps it's being optimised away in this case?
Serge,
ubuntu@ panda-test: ~$ gcc -o test test.c panda-test: ~$ ./test
ubuntu@
char is unsigned
Comparing a char to -1 is undefined, so perhaps it's being optimised away in this case?