It appears that the routine fgetc returns different values when compiled with the 64bit SCC compiler than under the 32bit SCC compiler.
A simple test using fputc and fgetc using the byte values 1 to 255; with the 32bit compiler it returns 1 to 255, but the 64 bit compiler returns 1 to 127 and then -128 to -1!
:?