diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-29 15:47:48 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-29 15:48:21 +0300 |
commit | a23475979bb66fadd42100129f986456f4460731 (patch) | |
tree | 16e4637daba0c9c6cb6b468ba1f1d86162c4ddf0 /unix | |
parent | 8139494e54b5ad1630f30490216e9486b976bdb8 (diff) | |
download | micropython-a23475979bb66fadd42100129f986456f4460731.tar.gz micropython-a23475979bb66fadd42100129f986456f4460731.zip |
modffi: Support short types.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/modffi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/modffi.c b/unix/modffi.c index f1b219987b..48666aef0b 100644 --- a/unix/modffi.c +++ b/unix/modffi.c @@ -100,6 +100,8 @@ STATIC ffi_type *char2ffi_type(char c) switch (c) { case 'b': return &ffi_type_schar; case 'B': return &ffi_type_uchar; + case 'h': return &ffi_type_sshort; + case 'H': return &ffi_type_ushort; case 'i': return &ffi_type_sint; case 'I': return &ffi_type_uint; case 'l': return &ffi_type_slong; |