Skip to content

Commit

Permalink
fbc: fix assert
Browse files Browse the repository at this point in the history
- disregard CONST qualifier when checking for boolean arguments
  • Loading branch information
jayrm committed Nov 4, 2023
1 parent 42a07d1 commit 2a27458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/ast-node-bop.bas
Expand Up @@ -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)
Expand Down

0 comments on commit 2a27458

Please sign in to comment.