From a23475979bb66fadd42100129f986456f4460731 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 29 Jun 2014 15:47:48 +0300 Subject: [PATCH] modffi: Support short types. --- unix/modffi.c | 2 ++ 1 file changed, 2 insertions(+) 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;