Those two lines of code are not the same, but not because of differences in endianess. Endianess doesn't affect the results of the << and >> operators, it only dictates how basic datatypes are represented in memory, so the error has to be somewhere else.
Cool project btw.
|