From b62bb53d0efd027f9b3f6b757870fd584b213d98 Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Mon, 31 Jul 2017 12:59:39 +1000
Subject: [PATCH] py/modsys: Use MP_ROM_INT for int values in an
 mp_rom_map_elem_t.

---
 py/modsys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/py/modsys.c b/py/modsys.c
index b8c427ba8..0a8f3cd50 100644
--- a/py/modsys.c
+++ b/py/modsys.c
@@ -168,7 +168,7 @@ STATIC const mp_rom_map_elem_t mp_module_sys_globals_table[] = {
     // to not try to compare sys.maxsize to some literal number (as this
     // number might not fit in available int size), but instead count number
     // of "one" bits in sys.maxsize.
-    { MP_ROM_QSTR(MP_QSTR_maxsize), MP_OBJ_NEW_SMALL_INT(MP_SMALL_INT_MAX) },
+    { MP_ROM_QSTR(MP_QSTR_maxsize), MP_ROM_INT(MP_SMALL_INT_MAX) },
     #else
     { MP_ROM_QSTR(MP_QSTR_maxsize), MP_ROM_PTR(&mp_maxsize_obj) },
     #endif
-- 
GitLab