]> git.saurik.com Git - cycript.git/commitdiff
Forgot earlier yy modification: CYTypeArrayOf type.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 12 Jun 2013 06:59:58 +0000 (23:59 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 12 Jun 2013 07:00:24 +0000 (00:00 -0700)
Cycript.yy.in

index 7ffc95121edd3b5d05ad4c475bc55c1cb9a4211b..aab5160c0a6e3299e3999a0e0610e06b4216b7a8 100644 (file)
@@ -1349,7 +1349,7 @@ ProgramBodyOpt
 SuffixedType
     : IdentifierOpt { $$ = CYNew CYTypedIdentifier($1); }
     | "(" LexPushInOff PrefixedType ")" LexPopIn { $$ = $3; }
 SuffixedType
     : IdentifierOpt { $$ = CYNew CYTypedIdentifier($1); }
     | "(" LexPushInOff PrefixedType ")" LexPopIn { $$ = $3; }
-    | SuffixedType "[" NumericLiteral "]" { CYSetLast($1->type_) = CYNew CYTypeArrayOf($3->Value()); $$ = $1; }
+    | SuffixedType "[" NumericLiteral "]" { CYSetLast($1->type_) = CYNew CYTypeArrayOf($3); $$ = $1; }
     ;
 
 PrefixedType
     ;
 
 PrefixedType