浏览代码

replaced TParenthesis by TCast when inlined type differ

Nicolas Cannasse 14 年之前
父节点
当前提交
6729a88390
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      optimizer.ml

+ 1 - 1
optimizer.ml

@@ -234,7 +234,7 @@ let rec type_inline ctx cf f ethis params tret p =
 			if e.etype == tret then
 				e
 			else
-				mk (TParenthesis e) tret e.epos
+				mk (TCast (e,None)) tret e.epos
 		in
 		let e = (match e.eexpr, init with
 			| TBlock [e] , None -> wrap e