summaryrefslogtreecommitdiff
path: root/unix/modffi.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-25 22:27:57 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-25 22:27:57 +0100
commit2617eebf2ff77e58f415162300747eaf1a5ab5d7 (patch)
tree7065586f59aa181b70b4721363ff7c7677f8e772 /unix/modffi.c
parentf88fc7bd23c7bab257a01857c6f4683ce491f78c (diff)
Change const byte* to const char* where sensible.
This removes need for some casts (at least, more than it adds need for new casts!).
Diffstat (limited to 'unix/modffi.c')
-rw-r--r--unix/modffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/modffi.c b/unix/modffi.c
index 4ac9fef5a..bfc840cef 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;