ffi: Fix mp_obj_str_get_data() return type.

This commit is contained in:
Paul Sokolovsky 2014-02-08 21:55:11 +02:00
parent 1e19b24ea0
commit 21c51f0bde
1 changed files with 1 additions and 1 deletions

View File

@ -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;