From 549add83e99fc7ca6830b71fb5b38e4a0790096a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 11 Jan 2014 21:00:13 -0800 Subject: [PATCH] I might misremember, but I don't think these work. --- sig/ffi_type.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sig/ffi_type.cpp b/sig/ffi_type.cpp index 7abe6fd..96f39bb 100644 --- a/sig/ffi_type.cpp +++ b/sig/ffi_type.cpp @@ -119,7 +119,7 @@ ffi_type *ObjectiveC(CYPool &pool, struct Type *type) { ffi_type *Java(CYPool &pool, struct Type *type) { switch (type->primitive) { case typename_P: return &ffi_type_pointer; - case union_P: return &ffi_type_pointer; + case union_P: _assert(false); break; case string_P: return &ffi_type_pointer; case selector_P: return &ffi_type_pointer; case block_P: return &ffi_type_pointer; @@ -132,10 +132,7 @@ ffi_type *Java(CYPool &pool, struct Type *type) { case ushort_P: return &ffi_type_ushort; case array_P: return &ffi_type_pointer; case pointer_P: return &ffi_type_pointer; - - /* XXX: bit type */ - case bit_P: return &ffi_type_uint; - + case bit_P: _assert(false); break; case char_P: return &ffi_type_schar; case double_P: return &ffi_type_double; case float_P: return &ffi_type_double; -- 2.45.2