From 21c51f0bdead583cda2271b6370e65ce3ff53258 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Sat, 8 Feb 2014 21:55:11 +0200
Subject: [PATCH] ffi: Fix mp_obj_str_get_data() return type.

---
 unix/ffi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unix/ffi.c b/unix/ffi.c
index b40e9a4ee..b83fc120a 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;
-- 
GitLab