diff options
author | Damien George <damien.p.george@gmail.com> | 2016-10-13 12:09:18 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-13 12:09:18 +1100 |
commit | f2f8ae110bfa1a17a34b81a9ac9de1378d2b3c50 (patch) | |
tree | c0ca6c8c6270a7fd3461dbec101ab8c264af983d /extmod/modujson.c | |
parent | 11ab807d76365bef451df0168b021f06bf14534c (diff) |
extmod/modujson: Fix nanbox build.
Diffstat (limited to 'extmod/modujson.c')
-rw-r--r-- | extmod/modujson.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modujson.c b/extmod/modujson.c index 193292b9e..ca4e6df10 100644 --- a/extmod/modujson.c +++ b/extmod/modujson.c @@ -278,7 +278,7 @@ STATIC mp_obj_t mod_ujson_loads(mp_obj_t obj) { const char *buf = mp_obj_str_get_data(obj, &len); vstr_t vstr = {len, len, (char*)buf, true}; mp_obj_stringio_t sio = {{&mp_type_stringio}, &vstr, 0}; - return mod_ujson_load(&sio); + return mod_ujson_load(MP_OBJ_FROM_PTR(&sio)); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_ujson_loads_obj, mod_ujson_loads); |