mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
1bd690c8c2
commit
47fc547532
1 changed files with 1 additions and 1 deletions
|
@ -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]; }
|
||||
|
|
Loading…
Reference in a new issue