Fix ambiguous overload when uint32_t is not unsigned int but unsigned long.
This commit is contained in:
parent
1b0fe576d7
commit
edfde4bfa2
@ -172,7 +172,7 @@ public:
|
|||||||
};
|
};
|
||||||
if (exp == 0) return *this;
|
if (exp == 0) return *this;
|
||||||
for (; exp >= 27; exp -= 27) *this *= RAPIDJSON_UINT64_C2(0X6765C793, 0XFA10079D); // 5^27
|
for (; exp >= 27; exp -= 27) *this *= RAPIDJSON_UINT64_C2(0X6765C793, 0XFA10079D); // 5^27
|
||||||
for (; exp >= 13; exp -= 13) *this *= 1220703125u; // 5^13
|
for (; exp >= 13; exp -= 13) *this *= static_cast<uint32_t>(1220703125u); // 5^13
|
||||||
if (exp > 0) *this *= kPow5[exp - 1];
|
if (exp > 0) *this *= kPow5[exp - 1];
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user