diff options
author | abolz <lt.morris.schaffer@googlemail.com> | 2018-06-15 14:53:48 +0300 |
---|---|---|
committer | abolz <lt.morris.schaffer@googlemail.com> | 2018-06-15 14:53:48 +0300 |
commit | 1d636de81e1f240a25df1ce7e02c55726964d9c9 (patch) | |
tree | a391fa0b77730a24236f49c476c8b706b698855a /include/rapidjson/internal | |
parent | a2a7d97b3b2b4c18ec1e693ecc52b5ff8e39f9b5 (diff) |
Fix another signed/unsigned warning
Diffstat (limited to 'include/rapidjson/internal')
-rw-r--r-- | include/rapidjson/internal/strtod.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rapidjson/internal/strtod.h b/include/rapidjson/internal/strtod.h index 75b0ec53..fce78a52 100644 --- a/include/rapidjson/internal/strtod.h +++ b/include/rapidjson/internal/strtod.h @@ -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) { - const BigInteger dInt(decimals, length); + RAPIDJSON_ASSERT(length >= 0); + const BigInteger dInt(decimals, static_cast<unsigned>(length)); Double a(approx); int cmp = CheckWithinHalfULP(a.Value(), dInt, dExp); if (cmp < 0) |