summaryrefslogtreecommitdiffstatshomepage
path: root/py/objint_longlong.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objint_longlong.c')
-rw-r--r--py/objint_longlong.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/objint_longlong.c b/py/objint_longlong.c
index 13e3b4811a..637d9c32c9 100644
--- a/py/objint_longlong.c
+++ b/py/objint_longlong.c
@@ -50,6 +50,11 @@
#define SUFFIX ""
#endif
+#if MICROPY_PY_SYS_MAXSIZE
+// Export value for sys.maxsize
+const mp_obj_int_t mp_maxsize_obj = {{&mp_type_int}, INT_MAX};
+#endif
+
bool mp_obj_int_is_positive(mp_obj_t self_in) {
if (MP_OBJ_IS_SMALL_INT(self_in)) {
return MP_OBJ_SMALL_INT_VALUE(self_in) >= 0;