We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8064892 commit 2e526ffCopy full SHA for 2e526ff
1 file changed
unix/modffi.c
@@ -110,6 +110,7 @@ STATIC ffi_type *char2ffi_type(char c)
110
case 'f': return &ffi_type_float;
111
case 'd': return &ffi_type_double;
112
#endif
113
+ case 'O': // mp_obj_t
114
case 'C': // (*)()
115
case 'P': // const void*
116
case 'p': // void*
@@ -153,6 +154,8 @@ STATIC mp_obj_t return_ffi_value(ffi_arg val, char type)
153
154
return mp_obj_new_float(*p);
155
}
156
157
+ case 'O':
158
+ return (mp_obj_t)val;
159
default:
160
return mp_obj_new_int(val);
161
0 commit comments