浏览代码

Always try to cast. Fixes #351.

woollybah 7 年之前
父节点
当前提交
6eeb7ed538
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      expr.bmx

+ 0 - 1
expr.bmx

@@ -76,7 +76,6 @@ Type TExpr
 	'semant and cast
 	Method SemantAndCast:TExpr( ty:TType,castFlags:Int=0 )
 		Local expr:TExpr=Semant()
-		If expr.exprType.EqualsType( ty ) Return expr
 		Return New TCastExpr.Create( ty,expr,castFlags ).Semant()
 	End Method