Commit 1d636de8 authored by abolz's avatar abolz

Fix another signed/unsigned warning

parent a2a7d97b
...@@ -205,7 +205,8 @@ inline bool StrtodDiyFp(const char* decimals, int dLen, int dExp, double* result ...@@ -205,7 +205,8 @@ inline bool StrtodDiyFp(const char* decimals, int dLen, int dExp, double* result
} }
inline double StrtodBigInteger(double approx, const char* decimals, int length, int dExp) { inline double StrtodBigInteger(double approx, const char* decimals, int length, int dExp) {
const BigInteger dInt(decimals, length); RAPIDJSON_ASSERT(length >= 0);
const BigInteger dInt(decimals, static_cast<unsigned>(length));
Double a(approx); Double a(approx);
int cmp = CheckWithinHalfULP(a.Value(), dInt, dExp); int cmp = CheckWithinHalfULP(a.Value(), dInt, dExp);
if (cmp < 0) if (cmp < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment