From: Jay Freeman (saurik) Date: Sun, 12 Jan 2014 05:00:13 +0000 (-0800) Subject: I might misremember, but I don't think these work. X-Git-Tag: v0.9.500~70 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/549add83e99fc7ca6830b71fb5b38e4a0790096a I might misremember, but I don't think these work. --- 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;