aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/numX.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@stainless.com>2025-10-25 14:14:30 -0400
committerBruce Hill <bruce@stainless.com>2025-10-25 14:14:30 -0400
commit874f7d750f39d154b9ecc9e7fb483eb6e7c43096 (patch)
treed6492975dc75e8b185f53e46267191fb59b071a1 /src/stdlib/numX.h
parentc10f596bb0451df399ca67a37279227a22539bf6 (diff)
Compatibility fixes
Diffstat (limited to 'src/stdlib/numX.h')
-rw-r--r--src/stdlib/numX.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/numX.h b/src/stdlib/numX.h
index 779c4e59..fa8ae6d3 100644
--- a/src/stdlib/numX.h
+++ b/src/stdlib/numX.h
@@ -72,7 +72,7 @@ MACROLIKE CONSTFUNC NUM_T NAMESPACED(from_int)(Int_t i, bool truncate) {
NUM_T ret = mpz_get_d(*i.big);
if (!truncate) {
mpz_t roundtrip;
- mpz_init_set_d(roundtrip, ret);
+ mpz_init_set_d(roundtrip, (double)ret);
if unlikely (mpz_cmp(*i.big, roundtrip) != 0)
fail("Could not convert integer to " TYPE_STR " without losing precision: ", i);
}