Skip to content

Commit a234759

Browse files
committed
modffi: Support short types.
1 parent 8139494 commit a234759

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unix/modffi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ STATIC ffi_type *char2ffi_type(char c)
100100
switch (c) {
101101
case 'b': return &ffi_type_schar;
102102
case 'B': return &ffi_type_uchar;
103+
case 'h': return &ffi_type_sshort;
104+
case 'H': return &ffi_type_ushort;
103105
case 'i': return &ffi_type_sint;
104106
case 'I': return &ffi_type_uint;
105107
case 'l': return &ffi_type_slong;

0 commit comments

Comments
 (0)