Skip to content

Commit f2f8ae1

Browse files
committed
extmod/modujson: Fix nanbox build.
1 parent 11ab807 commit f2f8ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/modujson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ STATIC mp_obj_t mod_ujson_loads(mp_obj_t obj) {
278278
const char *buf = mp_obj_str_get_data(obj, &len);
279279
vstr_t vstr = {len, len, (char*)buf, true};
280280
mp_obj_stringio_t sio = {{&mp_type_stringio}, &vstr, 0};
281-
return mod_ujson_load(&sio);
281+
return mod_ujson_load(MP_OBJ_FROM_PTR(&sio));
282282
}
283283
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_ujson_loads_obj, mod_ujson_loads);
284284

0 commit comments

Comments
 (0)