Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabolz <lt.morris.schaffer@googlemail.com>2018-06-15 14:53:48 +0300
committerabolz <lt.morris.schaffer@googlemail.com>2018-06-15 14:53:48 +0300
commit1d636de81e1f240a25df1ce7e02c55726964d9c9 (patch)
treea391fa0b77730a24236f49c476c8b706b698855a /include/rapidjson/internal
parenta2a7d97b3b2b4c18ec1e693ecc52b5ff8e39f9b5 (diff)
Fix another signed/unsigned warning
Diffstat (limited to 'include/rapidjson/internal')
-rw-r--r--include/rapidjson/internal/strtod.h3
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)