Explorar el Código

Support bools in binary math expression. Fixes #63.

woollybah hace 10 años
padre
commit
4c9c74f57e
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      expr.bmx
  2. 1 1
      options.bmx

+ 1 - 1
expr.bmx

@@ -1275,7 +1275,7 @@ Type TBinaryMathExpr Extends TBinaryExpr
 				If op<>"+"
 				If op<>"+"
 					Err "Illegal string operator."
 					Err "Illegal string operator."
 				EndIf
 				EndIf
-			Else If Not TNumericType( exprType ) And Not IsPointerType( exprType, 0, TType.T_POINTER ) And Not TArrayType( exprType )
+			Else If Not TNumericType( exprType ) And Not IsPointerType( exprType, 0, TType.T_POINTER ) And Not TArrayType( exprType ) And Not TBoolType( exprType )
 				Err "Illegal expression type."
 				Err "Illegal expression type."
 			Else If IsPointerType( exprType, 0, TType.T_POINTER ) And op <> "+" And op <> "-" Then
 			Else If IsPointerType( exprType, 0, TType.T_POINTER ) And op <> "+" And op <> "-" Then
 				Err "Illegal expression type."
 				Err "Illegal expression type."

+ 1 - 1
options.bmx

@@ -25,7 +25,7 @@ SuperStrict
 
 
 Import "base.configmap.bmx"
 Import "base.configmap.bmx"
 
 
-Const version:String = "0.30"
+Const version:String = "0.31"
 
 
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_MODULE:Int = 1
 Const BUILDTYPE_MODULE:Int = 1