Skip to content

Commit b62bb53

Browse files
committed
py/modsys: Use MP_ROM_INT for int values in an mp_rom_map_elem_t.
1 parent e6bb253 commit b62bb53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: py/modsys.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ STATIC const mp_rom_map_elem_t mp_module_sys_globals_table[] = {
168168
// to not try to compare sys.maxsize to some literal number (as this
169169
// number might not fit in available int size), but instead count number
170170
// of "one" bits in sys.maxsize.
171-
{ MP_ROM_QSTR(MP_QSTR_maxsize), MP_OBJ_NEW_SMALL_INT(MP_SMALL_INT_MAX) },
171+
{ MP_ROM_QSTR(MP_QSTR_maxsize), MP_ROM_INT(MP_SMALL_INT_MAX) },
172172
#else
173173
{ MP_ROM_QSTR(MP_QSTR_maxsize), MP_ROM_PTR(&mp_maxsize_obj) },
174174
#endif

0 commit comments

Comments
 (0)