ffi: Fix mp_obj_str_get_data() return type.
This commit is contained in:
parent
1e19b24ea0
commit
21c51f0bde
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue