summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--unix/ffi.c2
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;