diff options
Diffstat (limited to 'unix/modffi.c')
-rw-r--r-- | unix/modffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/modffi.c b/unix/modffi.c index 4ac9fef5aa..bfc840ceff 100644 --- a/unix/modffi.c +++ b/unix/modffi.c @@ -134,7 +134,7 @@ STATIC mp_obj_t return_ffi_value(ffi_arg val, char type) switch (type) { case 's': { const char *s = (const char *)val; - return mp_obj_new_str((const byte *)s, strlen(s), false); + return mp_obj_new_str(s, strlen(s), false); } case 'v': return mp_const_none; |