Parcourir la source

Support bools in binary math expression. Fixes #63.

woollybah il y a 10 ans
Parent
commit
4c9c74f57e
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      expr.bmx
  2. 1 1
      options.bmx

+ 1 - 1
expr.bmx

@@ -1275,7 +1275,7 @@ Type TBinaryMathExpr Extends TBinaryExpr
 				If op<>"+"
 					Err "Illegal string operator."
 				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."
 			Else If IsPointerType( exprType, 0, TType.T_POINTER ) And op <> "+" And op <> "-" Then
 				Err "Illegal expression type."

+ 1 - 1
options.bmx

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