8000 py/modsys: Use MP_ROM_INT for int values in an mp_rom_map_elem_t. · micropython/micropython@b62bb53 · GitHub
[go: up one dir, main page]

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

py/modsys.c

Lines changed: 1 addition & 1 deletion
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)
0