Explicit cast down from double
to int
This commit is contained in:
parent
ed2806117a
commit
d2ffdb1088
Notes:
git
2025-05-12 08:45:54 +00:00
2
ext/json/vendor/fpconv.c
vendored
2
ext/json/vendor/fpconv.c
vendored
@ -92,7 +92,7 @@ static Fp find_cachedpow10(int exp, int* k)
|
|||||||
{
|
{
|
||||||
const double one_log_ten = 0.30102999566398114;
|
const double one_log_ten = 0.30102999566398114;
|
||||||
|
|
||||||
int approx = -(exp + npowers) * one_log_ten;
|
int approx = (int)(-(exp + npowers) * one_log_ten);
|
||||||
int idx = (approx - firstpower) / steppowers;
|
int idx = (approx - firstpower) / steppowers;
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user