summaryrefslogtreecommitdiff
path: root/py/smallint.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/smallint.h')
-rw-r--r--py/smallint.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/smallint.h b/py/smallint.h
index 42679a78f..6a3c75236 100644
--- a/py/smallint.h
+++ b/py/smallint.h
@@ -50,10 +50,10 @@
#elif MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_D
-#define MP_SMALL_INT_MIN ((mp_int_t)(((mp_int_t)0xffffffff80000000) >> 1))
-#define MP_SMALL_INT_FITS(n) ((((n) ^ ((n) << 1)) & 0xffffffff80000000) == 0)
+#define MP_SMALL_INT_MIN ((mp_int_t)(((mp_int_t)0xffff800000000000) >> 1))
+#define MP_SMALL_INT_FITS(n) ((((n) ^ ((n) << 1)) & 0xffff800000000000) == 0)
// Mask to truncate mp_int_t to positive value
-#define MP_SMALL_INT_POSITIVE_MASK ~(0xffffffff80000000 | (0xffffffff80000000 >> 1))
+#define MP_SMALL_INT_POSITIVE_MASK ~(0xffff800000000000 | (0xffff800000000000 >> 1))
#endif