diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-25 19:48:44 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-29 12:56:45 +1100 |
commit | 204ded848e114208b8ecef0b683df71b77af5b5a (patch) | |
tree | 9b532349baf23d0f04d7a2e6b36cc3a7bcb9d32c /extmod/modujson.c | |
parent | 6b341075376705ee1fe9e003b76b09afa59778f4 (diff) |
extmod: Update for changes to mp_obj_str_get_data.
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 ca4e6df10..bb2d45274 100644 --- a/extmod/modujson.c +++ b/extmod/modujson.c @@ -274,7 +274,7 @@ STATIC mp_obj_t mod_ujson_load(mp_obj_t stream_obj) { STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_ujson_load_obj, mod_ujson_load); STATIC mp_obj_t mod_ujson_loads(mp_obj_t obj) { - mp_uint_t len; + size_t len; 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}; |