mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Fix bitfield warning
This commit is contained in:
parent
0ff5938b1f
commit
1af948a7d4
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ struct bf_base
|
||||||
static constexpr uint bitsize = N;
|
static constexpr uint bitsize = N;
|
||||||
|
|
||||||
// All ones mask
|
// 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
|
// Value mask
|
||||||
static constexpr utype vmask = mask1 >> (bitmax - bitsize);
|
static constexpr utype vmask = mask1 >> (bitmax - bitsize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue