Bug 1124029 - Fix unsigned/signed mismatch in MathAlgorithms. r=waldo

This commit is contained in:
Xidorn Quan 2015-01-23 08:29:36 +11:00
parent 85b7361ce5
commit 1856893b09

View File

@ -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);
}
};