We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
double
int
1 parent f9ed820 commit 3226913Copy full SHA for 3226913
ext/json/ext/vendor/fpconv.c
@@ -92,7 +92,7 @@ static Fp find_cachedpow10(int exp, int* k)
92
{
93
const double one_log_ten = 0.30102999566398114;
94
95
- int approx = -(exp + npowers) * one_log_ten;
+ int approx = (int)(-(exp + npowers) * one_log_ten);
96
int idx = (approx - firstpower) / steppowers;
97
98
while(1) {
0 commit comments