summaryrefslogtreecommitdiff
path: root/py/mpz.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-24 23:12:58 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-24 23:12:58 +0000
commit5c670acb1fdd04dcb9c220fee7cbeeb6b0c440e5 (patch)
tree4265962a5e3bb021bdc8cc7d511efce887cf50f9 /py/mpz.h
parent4c1a7e0d6a561be5871bb0d36b724f529e55c21d (diff)
py: Be more machine-portable with size of bit fields.
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;