summaryrefslogtreecommitdiff
path: root/py/mpz.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/mpz.h')
-rw-r--r--py/mpz.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpz.h b/py/mpz.h
index d2b6fad5c..d52e58b0c 100644
--- a/py/mpz.h
+++ b/py/mpz.h
@@ -69,7 +69,7 @@ typedef int32_t mpz_dbl_dig_signed_t;
typedef struct _mpz_t {
mp_uint_t neg : 1;
mp_uint_t fixed_dig : 1;
- mp_uint_t alloc : 30;
+ mp_uint_t alloc : BITS_PER_WORD - 2;
mp_uint_t len;
mpz_dig_t *dig;
} mpz_t;