Browse Source

php : fix with Unop/Prefix and Array access

Franco Ponticelli 14 years ago
parent
commit
0a4789b462
1 changed files with 1 additions and 1 deletions
  1. 1 1
      genphp.ml

+ 1 - 1
genphp.ml

@@ -1286,7 +1286,7 @@ and gen_expr ctx e =
 		(match e.eexpr with
 		(match e.eexpr with
 		| TArray(te1, te2) ->
 		| TArray(te1, te2) ->
 			gen_value ctx te1;
 			gen_value ctx te1;
-			spr ctx "->»a[";
+			spr ctx "[";
 			gen_value ctx te2;
 			gen_value ctx te2;
 			spr ctx "]";
 			spr ctx "]";
 		| TField (e1,s) ->
 		| TField (e1,s) ->