Skip to content

Commit

Permalink
py/modsys: Use MP_ROM_INT for int values in an mp_rom_map_elem_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Jul 31, 2017
1 parent e6bb253 commit b62bb53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/modsys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b62bb53

Please sign in to comment.