Commit f2d532c4 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/modsys: Use MP_ROM_PTR() initializer for sys.modules.

Based on similar usage for sys.argv/sys.path.
parent c03dd3b2
......@@ -186,7 +186,7 @@ STATIC const mp_rom_map_elem_t mp_module_sys_globals_table[] = {
{ 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)) },
{ MP_ROM_QSTR(MP_QSTR_exc_info), MP_ROM_PTR(&mp_sys_exc_info_obj) },
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment