Skip to content

Commit 262e44d

Browse files
committed
Nits 6
1 parent 23fdf76 commit 262e44d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simplecpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,10 +1373,10 @@ void simplecpp::TokenList::constFoldLogicalOp(Token *tok)
13731373
result = 0;
13741374
} else /*if (tok->str() == "&&")*/ {
13751375
breakPoints.insert("||");
1376-
if (!stringToLL(tok->previous->str()) == 0) {
1376+
if (stringToLL(tok->previous->str()) == 0) {
13771377
tok = foldLogicalOpToSingleValue(tok->previous, breakPoints, &stepForward, std::make_pair<std::string, std::string>("(", ")"), "0");
13781378
break;
1379-
} else if (!stringToLL(tok->next->str()) == 0) {
1379+
} else if (stringToLL(tok->next->str()) == 0) {
13801380
tok = foldLogicalOpToSingleValue(tok->next, breakPoints, &stepBack, std::make_pair<std::string, std::string>(")", "("), "0");
13811381
break;
13821382
}

0 commit comments

Comments
 (0)