summaryrefslogtreecommitdiff
path: root/py/objint_mpz.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-06 18:39:39 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-06 18:39:39 +0100
commit33b50a02176bcf4f7114498f9925003808d6e53f (patch)
tree8429efb0fddd5b567a1fc6fbcde421a24471282c /py/objint_mpz.c
parentc7a79284bb13671d8829c68f28c6839fa0b76054 (diff)
parent78fde4819c2e56365947dcfcc686d447c1d75f09 (diff)
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/objint_mpz.c')
-rw-r--r--py/objint_mpz.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/py/objint_mpz.c b/py/objint_mpz.c
index 20fba00bf..440b4f318 100644
--- a/py/objint_mpz.c
+++ b/py/objint_mpz.c
@@ -47,14 +47,14 @@
// Export value for sys.maxsize
#define DIG_MASK ((1L << MPZ_DIG_SIZE) - 1)
STATIC const mpz_dig_t maxsize_dig[MPZ_NUM_DIG_FOR_INT] = {
- (INT_MAX >> MPZ_DIG_SIZE * 0) & DIG_MASK,
- #if (INT_MAX >> MPZ_DIG_SIZE * 0) > DIG_MASK
- (INT_MAX >> MPZ_DIG_SIZE * 1) & DIG_MASK,
- #if (INT_MAX >> MPZ_DIG_SIZE * 1) > DIG_MASK
- (INT_MAX >> MPZ_DIG_SIZE * 2) & DIG_MASK,
- (INT_MAX >> MPZ_DIG_SIZE * 3) & DIG_MASK,
- (INT_MAX >> MPZ_DIG_SIZE * 4) & DIG_MASK,
-// (INT_MAX >> MPZ_DIG_SIZE * 5) & DIG_MASK,
+ (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 0) & DIG_MASK,
+ #if (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 0) > DIG_MASK
+ (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 1) & DIG_MASK,
+ #if (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 1) > DIG_MASK
+ (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 2) & DIG_MASK,
+ (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 3) & DIG_MASK,
+ (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 4) & DIG_MASK,
+// (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 5) & DIG_MASK,
#endif
#endif
};