Skip to content
This repository was archived by the owner on Apr 25, 2021. It is now read-only.

Commit b9c9e71

Browse files
committed
oprom.umip 고침
1 parent 839c228 commit b9c9e71

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/moduimp.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33

44
STATIC mp_obj_t uimp_new_module(mp_obj_t name_obj) {
5-
return mp_obj_new_module(name_obj);
5+
size_t len = 0;
6+
const char *name = mp_obj_str_get_data(name_obj, &len);
7+
8+
qstr qst = qstr_from_strn(name, len);
9+
return mp_obj_new_module(qst);
610
}
711

812
MP_DEFINE_CONST_FUN_OBJ_1(uimp_new_module_obj, uimp_new_module);
@@ -17,5 +21,5 @@ STATIC MP_DEFINE_CONST_DICT(uimp_module_globals, uimp_module_globals_table);
1721

1822
const mp_obj_module_t mp_module_uimp = {
1923
.base = {&mp_type_module},
20-
.globals = (mp_obj_dict_t *) &ucode_module_globals,
24+
.globals = (mp_obj_dict_t *) &uimp_module_globals,
2125
};

0 commit comments

Comments
 (0)