We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6bb253 commit b62bb53Copy full SHA for b62bb53
py/modsys.c
@@ -168,7 +168,7 @@ STATIC const mp_rom_map_elem_t mp_module_sys_globals_table[] = {
168
// to not try to compare sys.maxsize to some literal number (as this
169
// number might not fit in available int size), but instead count number
170
// of "one" bits in sys.maxsize.
171
- { 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) },
172
#else
173
{ MP_ROM_QSTR(MP_QSTR_maxsize), MP_ROM_PTR(&mp_maxsize_obj) },
174
#endif
0 commit comments