mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1124029
- Fix unsigned/signed mismatch in MathAlgorithms. r=waldo
This commit is contained in:
parent
85b7361ce5
commit
1856893b09
@ -382,7 +382,7 @@ public:
|
||||
static uint_fast8_t compute(const T aValue)
|
||||
{
|
||||
// Check for <= 1 to avoid the == 0 undefined case.
|
||||
return aValue <= 1 ? 0 : 64 - CountLeadingZeroes64(aValue - 1);
|
||||
return aValue <= 1 ? 0u : 64u - CountLeadingZeroes64(aValue - 1);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user