py/modsys: Use MP_ROM_PTR() initializer for sys.modules.
Based on similar usage for sys.argv/sys.path.
This commit is contained in:
parent
c03dd3b2f9
commit
f2d532c404
@ -186,7 +186,7 @@ STATIC const mp_rom_map_elem_t mp_module_sys_globals_table[] = {
|
||||
#endif
|
||||
|
||||
#if MICROPY_PY_SYS_MODULES
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_modules), MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_loaded_modules_dict)) },
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_modules), MP_ROM_PTR(&MP_STATE_VM(mp_loaded_modules_dict)) },
|
||||
#endif
|
||||
#if MICROPY_PY_SYS_EXC_INFO
|
||||
{ MP_ROM_QSTR(MP_QSTR_exc_info), MP_ROM_PTR(&mp_sys_exc_info_obj) },
|
||||
|
Loading…
x
Reference in New Issue
Block a user