mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
First part of fixing sign-compare warning (inside be_t).
This commit is contained in:
parent
0cf35e3b22
commit
771eff273b
31 changed files with 129 additions and 128 deletions
|
@ -11,7 +11,7 @@ struct bf_base
|
|||
|
||||
// Datatype bitsize
|
||||
static constexpr uint bitmax = sizeof(T) * 8; static_assert(N - 1 < bitmax, "bf_base<> error: N out of bounds");
|
||||
|
||||
|
||||
// Field bitsize
|
||||
static constexpr uint bitsize = N;
|
||||
|
||||
|
@ -96,7 +96,7 @@ struct bf_t : bf_base<T, N>
|
|||
// Optimized bool conversion (must be removed if inappropriate)
|
||||
explicit constexpr operator bool() const
|
||||
{
|
||||
return unshifted() != 0;
|
||||
return unshifted() != 0u;
|
||||
}
|
||||
|
||||
// Store bitfield value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue