Explicit cast down from double to int

This commit is contained in:
Nobuyoshi Nakada 2025-05-12 13:51:12 +09:00 committed by Nobuyoshi Nakada
parent ed2806117a
commit d2ffdb1088
Notes: git 2025-05-12 08:45:54 +00:00

View File

@ -92,7 +92,7 @@ static Fp find_cachedpow10(int exp, int* k)
{
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;
while(1) {