Commit fc85fbee authored by abolz's avatar abolz

Fix implicit signed/unsigned conversion and a small glitch in the error computation - part 2

parent 16c97cd7
......@@ -165,7 +165,7 @@ inline bool StrtodDiyFp(const char* decimals, int dLen, int dExp, double* result
int adjustment = dExp - actualExp;
RAPIDJSON_ASSERT(adjustment >= 1 && adjustment < 8);
v = v * kPow10[adjustment - 1];
if (dLen + adjustment > 19u) // has more digits than decimal digits in 64-bit
if (dLen + adjustment > 19) // has more digits than decimal digits in 64-bit
error += kUlp / 2;
}
......
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