View Single Post
Old September 1, 2010, 06:40   #7
zaimoni's Avatar
Join Date: Apr 2007
Posts: 590
zaimoni is on a distinguished road
Originally Posted by Hajo View Post
On the other hand "unsigned char" seems to work reasonably well with gcc on all platforms that I know and it would already give a whopping 128 extra ego data slots, while keeping the save game format. A comment in types.h mentions that "unsigned char" is not properly supported on some platforms, but maybe this has improved in the past ten years?
More like past twenty (that comment sounds more appropriate for the K&R compilers available in Moria's time).

Any C90 compliant compiler targeting a normal platform should be fine with unsigned char for that field.
Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011
zaimoni is offline   Reply With Quote