diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-01-11 15:09:56 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-01-11 15:09:56 -0500 |
| commit | 144b93491a76b969e531743f48a21897f9c5e8bc (patch) | |
| tree | e5249f25b4ef78764779c2151972c0eed1f082fa /src | |
| parent | fd0c9762684821ed9931b3e59c812f1849f1a7d4 (diff) | |
Bugfix
Diffstat (limited to 'src')
| -rw-r--r-- | src/stdlib/bigint.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
