Fix another signed/unsigned warning
This commit is contained in:
parent
a2a7d97b3b
commit
1d636de81e
@ -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) {
|
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);
|
Double a(approx);
|
||||||
int cmp = CheckWithinHalfULP(a.Value(), dInt, dExp);
|
int cmp = CheckWithinHalfULP(a.Value(), dInt, dExp);
|
||||||
if (cmp < 0)
|
if (cmp < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user