1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-30 17:12:53 -05:00

Update rapidjson

This commit is contained in:
XMRig
2025-06-05 01:22:31 +07:00
parent 0c52d789a9
commit 184d6100dc
16 changed files with 857 additions and 216 deletions

View File

@@ -134,7 +134,7 @@ inline bool StrtodDiyFp(const Ch* decimals, int dLen, int dExp, double* result)
int i = 0; // 2^64 - 1 = 18446744073709551615, 1844674407370955161 = 0x1999999999999999
for (; i < dLen; i++) {
if (significand > RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) ||
(significand == RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) && decimals[i] > Ch('5')))
(significand == RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) && decimals[i] >= Ch('5')))
break;
significand = significand * 10u + static_cast<unsigned>(decimals[i] - Ch('0'));
}