misra.py: Fix mistake I saw when looking at the code
This commit is contained in:
parent
63151f3291
commit
7cded1967d
|
@ -2207,7 +2207,7 @@ class MisraChecker:
|
||||||
if not token.astOperand1.valueType or not token.astOperand2.valueType:
|
if not token.astOperand1.valueType or not token.astOperand2.valueType:
|
||||||
continue
|
continue
|
||||||
if ((token.astOperand1.str in op or token.astOperand1.isComparisonOp) and
|
if ((token.astOperand1.str in op or token.astOperand1.isComparisonOp) and
|
||||||
(token.astOperand2.str in op or token.astOperand1.isComparisonOp)):
|
(token.astOperand2.str in op or token.astOperand2.isComparisonOp)):
|
||||||
e1, e2 = getEssentialCategorylist(token.astOperand1.astOperand2, token.astOperand2.astOperand1)
|
e1, e2 = getEssentialCategorylist(token.astOperand1.astOperand2, token.astOperand2.astOperand1)
|
||||||
elif token.astOperand1.str in op or token.astOperand1.isComparisonOp:
|
elif token.astOperand1.str in op or token.astOperand1.isComparisonOp:
|
||||||
e1, e2 = getEssentialCategorylist(token.astOperand1.astOperand2, token.astOperand2)
|
e1, e2 = getEssentialCategorylist(token.astOperand1.astOperand2, token.astOperand2)
|
||||||
|
|
Loading…
Reference in New Issue