]> git.saurik.com Git - cycript.git/blobdiff - sig/parse.cpp
Added bridging for nlist_64, activated memory manager, and setup a remap from singlet...
[cycript.git] / sig / parse.cpp
index 1c0ec2339494bcfeb2f9be18b1ca476c976e8439..3452e5a3159bd2046cd332904e24b6d1fd967111 100644 (file)
@@ -118,7 +118,10 @@ struct Type *Parse_(apr_pool_t *pool, const char **name, char eos, bool named, C
         case '#': type->primitive = typename_P; break;
 
         case '(':
-            type->primitive = union_P;
+            if (type->data.signature.count < 2)
+                type->primitive = struct_P;
+            else
+                type->primitive = union_P;
             next = ')';
         goto aggregate;