From 144b93491a76b969e531743f48a21897f9c5e8bc Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Jan 2026 15:09:56 -0500 Subject: Bugfix --- src/stdlib/bigint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/stdlib/bigint.h b/src/stdlib/bigint.h index a948e1e7..ae95b224 100644 --- a/src/stdlib/bigint.h +++ b/src/stdlib/bigint.h @@ -198,7 +198,7 @@ MACROLIKE PUREFUNC Int_t Int$from_float64(double n, bool truncate) { if (!truncate && unlikely(mpz_get_d(result) != n)) fail("Could not convert to an integer without truncation: ", n); return Int$from_mpz(result); } -MACROLIKE PUREFUNC Int_t Int$from_num32(float n, bool truncate) { +MACROLIKE PUREFUNC Int_t Int$from_float32(float n, bool truncate) { return Int$from_float64((double)n, truncate); } MACROLIKE Int_t Int$from_int64(int64_t i) { -- cgit v1.2.3