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;
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;