Skip to content

Commit

Permalink
Fixed Logical Or
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiYueCommentary committed Jul 12, 2023
1 parent d62c677 commit 463983b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/exprnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ ExprNode* BinExprNode::semant(Environ* e) {
}
break;
case LOR:
if(lc->intValue()) { //Only evaluate right expression, if left expression is false
if(!lc->intValue()) { //Only evaluate right expression, if left expression is false
rc = rhs->constNode();
if(rc) {
ExprNode* expr;
Expand Down

0 comments on commit 463983b

Please # to comment.