Skip to content

Commit 94a33f6

Browse files
committed
fixed logical error in RULE-14-3
1 parent 8a83f84 commit 94a33f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/misra/src/rules/RULE-14-3/ControllingExprInvariant.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ where
4848
exists(SwitchStmt switch |
4949
switch.getControllingExpr() = expr and
5050
(
51-
conditionAlwaysFalse(expr) and
51+
conditionAlwaysFalse(expr) or
5252
conditionAlwaysTrue(expr)
5353
)
5454
) and

0 commit comments

Comments
 (0)