Skip to content

Commit 1d636de

Browse files
committed
Fix another signed/unsigned warning
1 parent a2a7d97 commit 1d636de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/rapidjson/internal/strtod.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ inline bool StrtodDiyFp(const char* decimals, int dLen, int dExp, double* result
205205
}
206206

207207
inline double StrtodBigInteger(double approx, const char* decimals, int length, int dExp) {
208-
const BigInteger dInt(decimals, length);
208+
RAPIDJSON_ASSERT(length >= 0);
209+
const BigInteger dInt(decimals, static_cast<unsigned>(length));
209210
Double a(approx);
210211
int cmp = CheckWithinHalfULP(a.Value(), dInt, dExp);
211212
if (cmp < 0)

0 commit comments

Comments
 (0)