unix/modffi: Add support for "q"/"Q" specs (int64_t/uint64_t).

pull/4234/merge
Paul Sokolovsky 2018-08-29 18:29:26 +03:00 zatwierdzone przez Damien George
rodzic 0c18633ea9
commit 6c5b2bded2
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

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