addons/misra.py: Fix comparison instead of assignment (#1920)

This commit is contained in:
Sebastian 2019-06-25 19:18:31 +02:00 committed by GitHub
parent d1386112a9
commit ba0ca5d087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -924,7 +924,7 @@ class MisraChecker:
e_token = scope.bodyStart.next
while e_token != scope.bodyEnd:
if e_token.str == '(':
e_token.str == e_token.link
e_token.str = e_token.link
continue
if not e_token.previous.str in ',{':
e_token = e_token.next