Skip to content

Commit 8a8c633

Browse files
fix for ftoll suggested by calc84maniac
1 parent 53179d7 commit 8a8c633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crt/ftoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ long long _ftoll_c(float x)
99
const uint24_t mantissa = UINT24_C(1) << (FLT_MANT_DIG - 1) | parts.mantissa;
1010
if (exponent < bias) return 0;
1111
if (exponent <= bias + FLT_MANT_DIG - 1) {
12-
const int24_t result = mantissa >> (bias + FLT_MANT_DIG - 1 - exponent);
12+
const long long result = mantissa >> (bias + FLT_MANT_DIG - 1 - exponent);
1313
return parts.sign ? -result : result;
1414
}
1515
const long long result = (long long)mantissa << (exponent - bias);

0 commit comments

Comments
 (0)