diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2009-12-10 15:24:00 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2009-12-10 15:24:00 +1000 |
commit | f1dc758673f5f22c817438bb4f9281640c213085 (patch) | |
tree | 732d8bc2f85bba37d36741122b2aee698917b7fe | |
parent | 98d167518fc008615d1e192e85cad5b5c84dbe23 (diff) | |
download | ffi-f1dc758673f5f22c817438bb4f9281640c213085.tar.gz |
Use unsigned char for :bool to make :bool members of Struct work
-rw-r--r-- | ext/ffi_c/Type.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi_c/Type.c b/ext/ffi_c/Type.c index c3ff81e..5679636 100644 --- a/ext/ffi_c/Type.c +++ b/ext/ffi_c/Type.c @@ -304,7 +304,7 @@ rbffi_Type_Init(VALUE moduleFFI) T(BUFFER_OUT, &ffi_type_pointer); T(BUFFER_INOUT, &ffi_type_pointer); T(ENUM, &ffi_type_sint); - T(BOOL, &ffi_type_sint); + T(BOOL, &ffi_type_uchar); T(CHAR_ARRAY, &ffi_type_void); |