diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-08 21:55:11 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-08 22:00:15 +0200 |
commit | 21c51f0bdead583cda2271b6370e65ce3ff53258 (patch) | |
tree | 0ef6300a5e2663cc26477ad875bfe1dc0077d101 /unix | |
parent | 1e19b24ea0081cde0cbccfecd9698a0b55a4450c (diff) | |
download | micropython-21c51f0bdead583cda2271b6370e65ce3ff53258.tar.gz micropython-21c51f0bdead583cda2271b6370e65ce3ff53258.zip |
ffi: Fix mp_obj_str_get_data() return type.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/ffi.c b/unix/ffi.c index b40e9a4ee6..b83fc120a9 100644 --- a/unix/ffi.c +++ b/unix/ffi.c @@ -71,7 +71,7 @@ static ffi_type *get_ffi_type(mp_obj_t o_in) { if (MP_OBJ_IS_STR(o_in)) { uint len; - const byte *s = mp_obj_str_get_data(o_in, &len); + const char *s = mp_obj_str_get_data(o_in, &len); ffi_type *t = char2ffi_type(*s); if (t != NULL) { return t; |