diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-25 19:54:07 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-25 19:54:07 +1100 |
commit | 29424304d9837339d31e1c276ebd39df46c44eb9 (patch) | |
tree | 2f616f7b644352630dd362a1404d5a5c9a94693e /unix/modffi.c | |
parent | ab5689bc9df27d481c08f8087bf6c4f12b881255 (diff) | |
download | micropython-29424304d9837339d31e1c276ebd39df46c44eb9.tar.gz micropython-29424304d9837339d31e1c276ebd39df46c44eb9.zip |
unix: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
Diffstat (limited to 'unix/modffi.c')
-rw-r--r-- | unix/modffi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unix/modffi.c b/unix/modffi.c index 74194e2cc0..7a35d61ef4 100644 --- a/unix/modffi.c +++ b/unix/modffi.c @@ -126,8 +126,7 @@ STATIC ffi_type *char2ffi_type(char c) STATIC ffi_type *get_ffi_type(mp_obj_t o_in) { if (MP_OBJ_IS_STR(o_in)) { - mp_uint_t len; - const char *s = mp_obj_str_get_data(o_in, &len); + const char *s = mp_obj_str_get_str(o_in); ffi_type *t = char2ffi_type(*s); if (t != NULL) { return t; |