diff options
Diffstat (limited to 'unix/ffi.c')
-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 a25e54b54..d42e4d092 100644 --- a/unix/ffi.c +++ b/unix/ffi.c @@ -254,7 +254,7 @@ mp_obj_t ffifunc_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_t * values[i] = 0; } else if (MP_OBJ_IS_INT(a)) { values[i] = mp_obj_int_get(a); - } else if (MP_OBJ_IS_STR(a) || MP_OBJ_IS_TYPE(a, &bytes_type)) { + } else if (MP_OBJ_IS_STR(a) || MP_OBJ_IS_TYPE(a, &mp_type_bytes)) { const char *s = mp_obj_str_get_str(a); values[i] = (ffi_arg)s; } else if (MP_OBJ_IS_TYPE(a, &fficallback_type)) { |