Fix ambiguous overload when uint32_t is not unsigned int but unsigned long.

This commit is contained in:
Janusz Chorko 2015-02-14 17:17:16 +01:00
parent 1b0fe576d7
commit edfde4bfa2

View File

@ -172,7 +172,7 @@ public:
};
if (exp == 0) return *this;
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];
return *this;
}