From 2a274581dcb20c1c00237b5a3cdd3e0fc264bfa4 Mon Sep 17 00:00:00 2001 From: coderJeff Date: Fri, 3 Nov 2023 15:17:52 -0400 Subject: [PATCH] fbc: fix assert - disregard CONST qualifier when checking for boolean arguments --- src/compiler/ast-node-bop.bas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/ast-node-bop.bas b/src/compiler/ast-node-bop.bas index 682cb87d4..b87647c53 100644 --- a/src/compiler/ast-node-bop.bas +++ b/src/compiler/ast-node-bop.bas @@ -1561,7 +1561,7 @@ function astNewBOP _ '' For ANDALSO/ORELSE, "ex" is the dtorlist cookie - assert( (dtype = FB_DATATYPE_BOOLEAN) or (dtype = FB_DATATYPE_INTEGER) ) + assert( (typeGetDtAndPtrOnly(dtype) = FB_DATATYPE_BOOLEAN) or (typeGetDtAndPtrOnly(dtype) = FB_DATATYPE_INTEGER) ) if ldclass = FB_DATACLASS_FPOINT then cmp_constl = astNewConstf(0.0, FB_DATATYPE_SINGLE)