mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
Fix bitfield warning
This commit is contained in:
parent
0ff5938b1f
commit
1af948a7d4
@ -16,7 +16,7 @@ struct bf_base
|
||||
static constexpr uint bitsize = N;
|
||||
|
||||
// All ones mask
|
||||
static constexpr utype mask1 = static_cast<utype>(UINTMAX_MAX);
|
||||
static constexpr utype mask1 = static_cast<utype>(~static_cast<utype>(0));
|
||||
|
||||
// Value mask
|
||||
static constexpr utype vmask = mask1 >> (bitmax - bitsize);
|
||||
|
Loading…
Reference in New Issue
Block a user