]> git.saurik.com Git - cycript.git/blobdiff - sig/ffi_type.cpp
Do not use corrupt struct to store type reference.
[cycript.git] / sig / ffi_type.cpp
index 2b6c0d3de61c4d24e701c39fa1dc139716c0096d..e0c4d0f900bd41e73a873563c266ac02cb98540c 100644 (file)
@@ -176,8 +176,8 @@ ffi_type *Enum::GetFFI(CYPool &pool) const {
 }
 
 ffi_type *Aggregate::GetFFI(CYPool &pool) const {
-    // XXX: we can totally make overlap work
     _assert(!overlap);
+    _assert(signature.count != _not(size_t));
 
     ffi_type *ffi(new(pool) ffi_type());
     ffi->size = 0;