소스 검색

[php] wrap TEnumParameter in `_hx_deref` because it could contain constructors

Simon Krajewski 11 년 전
부모
커밋
8213dcabb9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      genphp.ml

+ 2 - 0
genphp.ml

@@ -1233,7 +1233,9 @@ and gen_expr ctx e =
 			gen_value_op ctx e2;
 		));
 	| TEnumParameter(e1,_,i) ->
+		spr ctx "_hx_deref(";
 		gen_value ctx e1;
+		spr ctx ")";
 		print ctx "->params[%d]" i;
 	| TField (e1,s) ->
 		gen_tfield ctx e e1 (field_name s)