diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2018-08-29 18:29:26 +0300 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-10-17 15:17:05 +1100 |
commit | 6c5b2bded21f9b31c98fa4080c6c07b922b87ec0 (patch) | |
tree | 642156c733a10accfdd98161900740366b38ff26 | |
parent | 0c18633ea9bed6a0c1031357c4eacbb016deb41a (diff) |
unix/modffi: Add support for "q"/"Q" specs (int64_t/uint64_t).
-rw-r--r-- | ports/unix/modffi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/unix/modffi.c b/ports/unix/modffi.c index 024f83c14..c262721eb 100644 --- a/ports/unix/modffi.c +++ b/ports/unix/modffi.c @@ -108,6 +108,8 @@ STATIC ffi_type *char2ffi_type(char c) case 'I': return &ffi_type_uint; case 'l': return &ffi_type_slong; case 'L': return &ffi_type_ulong; + case 'q': return &ffi_type_sint64; + case 'Q': return &ffi_type_uint64; #if MICROPY_PY_BUILTINS_FLOAT case 'f': return &ffi_type_float; case 'd': return &ffi_type_double; |