]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
unsignedLessThanZero cppcheck
authorgtsoul-tech <gtsoulkanakis@gmail.com>
Tue, 23 Apr 2024 09:27:43 +0000 (12:27 +0300)
committergtsoul-tech <gtsoulkanakis@gmail.com>
Tue, 23 Apr 2024 09:27:43 +0000 (12:27 +0300)
src/parser/logical_combination.cpp

index b75ca34fc05c2d8375711a96c3aa0002635ece59..a37f4e5f0eeda78258cf6d1ec208717b2e1f239d 100644 (file)
@@ -284,7 +284,7 @@ void ParsedLogical::parseLogicalCombination(unsigned id, const char *logical,
                 if (logical[i] == '(') {
                     paren += 1;
                 } else if (logical[i] == ')') {
-                    if (paren <= 0) {
+                    if (paren == 0) {
                         throw LocatedParseError("Not enough left parentheses");
                     }
                     paren -= 1;