Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f2f8ae11
Commit
f2f8ae11
authored
Oct 13, 2016
by
Damien George
Browse files
extmod/modujson: Fix nanbox build.
parent
11ab807d
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/modujson.c
View file @
f2f8ae11
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment