2
0
Эх сурвалжийг харах

Abs() accepts boolean args. Fixes #180.

woollybah 9 жил өмнө
parent
commit
c2ef81c2b5
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      expr.bmx

+ 1 - 1
expr.bmx

@@ -2506,7 +2506,7 @@ Type TAbsExpr Extends TBuiltinExpr
 
 		expr=expr.Semant()
 
-		If TNumericType(expr.exprType) Then
+		If TNumericType(expr.exprType) Or TBoolType(expr.exprType) Then
 			If TIntType(expr.exprType) Or TByteType(expr.exprType) Or TShortType(expr.exprType) Then
 				exprType=New TIntType
 			Else