facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.3k stars 1.02k forks source link

uint24_t does not work on Big-Endian systems #20

Closed ghost closed 10 years ago

ghost commented 10 years ago

This code in a Big-Endian system: RakNet::uint24_t test(0); test++; printf("%u\n", test.val); will print 0 and not the expected 1.

I will try to solve it and post a solution in a comment.

ghost commented 10 years ago

sorry.. some testcode made it not work..