Avoid a truncation warning in compat.h

git-svn-id: https://svn.eduke32.com/eduke32@8095 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-09-10 23:35:07 +00:00 committed by Christoph Oelckers
parent 1bd690c8c2
commit 47fc547532

View file

@ -1163,7 +1163,7 @@ CONSTEXPR size_t logbasenegative(T n)
////////// Bitfield manipulation //////////
static CONSTEXPR const char pow2char[8] = {1,2,4,8,16,32,64,128};
static CONSTEXPR const char pow2char[8] = {1,2,4,8,16,32,64,128u};
static FORCE_INLINE void bitmap_set(uint8_t *const ptr, int const n) { ptr[n>>3] |= pow2char[n&7]; }
static FORCE_INLINE void bitmap_clear(uint8_t *const ptr, int const n) { ptr[n>>3] &= ~pow2char[n&7]; }