From e9b9cbf090f3cde59867a096024df487175fe68f Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Thu, 19 Sep 2024 06:39:10 +0300 Subject: [PATCH] +1 --- src/gmpy2_convert_gmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmpy2_convert_gmp.c b/src/gmpy2_convert_gmp.c index b701325c..c03a334f 100644 --- a/src/gmpy2_convert_gmp.c +++ b/src/gmpy2_convert_gmp.c @@ -68,7 +68,7 @@ mpz_set_PyLong(mpz_t z, PyObject *obj) if (long_export.value < 0) { mpz_t tmp; mpz_init(tmp); - mpz_ui_pow_ui(tmp, 2, 8*sizeof(size_t)); + mpz_ui_pow_ui(tmp, 2, 64); mpz_sub(z, z, tmp); mpz_clear(tmp); }