HomePhabricator (Chris)

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

Description

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

./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);

~~~~~^~~~~~~~~~~~~~~~~~~~~~

Details

Provenance
Sergey AlirzaevAuthored on Sep 26 2018, 8:41 PM
Parents
R80:ba99a9a30875: Merge pull request #33 from devnexen/clang_build
Branches
Unknown
Tags
Unknown

Event Timeline