Browse Source

Always try to cast. Fixes #351.

woollybah 7 năm trước cách đây
mục cha
commit
6eeb7ed538
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      expr.bmx

+ 0 - 1
expr.bmx

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