summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-07-31 12:59:39 +1000
committerDamien George <damien.p.george@gmail.com>2017-07-31 12:59:39 +1000
commitb62bb53d0efd027f9b3f6b757870fd584b213d98 (patch)
treec381f8f8de3e3c7dba4a7e868b50b28adcc78cc3
parente6bb25317b7768ae3423f520e69dbb1f7109605c (diff)
downloadmicropython-b62bb53d0efd027f9b3f6b757870fd584b213d98.tar.gz
micropython-b62bb53d0efd027f9b3f6b757870fd584b213d98.zip
py/modsys: Use MP_ROM_INT for int values in an mp_rom_map_elem_t.
-rw-r--r--py/modsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modsys.c b/py/modsys.c
index b8c427ba87..0a8f3cd50e 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