BlindMindStudios / StarRuler2-Source

4X Space Strategy game Star Ruler 2's open source distribution.
http://starruler2.com
Other
1.46k stars 246 forks source link

source/game/obj/object.h: don't complain about int overflow #49

Closed l29ah closed 6 years ago

l29ah commented 6 years ago

./source/game/obj/object.h:19:49: warning: result of ‘(255 << 26)’ requires 35 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=] const unsigned ObjectTypeMask = (unsigned)(0xFF << ObjectTypeBitOffset);