]> git.saurik.com Git - cycript.git/blobdiff - sig/copy.cpp
Support casting any pointer to a function type.
[cycript.git] / sig / copy.cpp
index b38405e032f812fe27996ee3fa8eb0f7cbdd89e3..b85640c1e1555598787dff2fc4cca2864fae3735 100644 (file)
@@ -58,7 +58,7 @@ void Copy(CYPool &pool, Type &lhs, Type &rhs) {
     lhs.name = pool.strdup(rhs.name);
     lhs.flags = rhs.flags;
 
-    if (sig::IsAggregate(rhs.primitive))
+    if (rhs.primitive == '\0' || sig::IsAggregate(rhs.primitive))
         Copy(pool, lhs.data.signature, rhs.data.signature);
     else {
         sig::Type *&lht(lhs.data.data.type);