Misra: improve 7.3

This commit is contained in:
Daniel Marjamäki 2017-04-12 19:07:10 +02:00
parent f6afbbe65d
commit 024b9c87d0
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ void misra_7_1() {
void misra_7_3() {
int x = 12l; // 7.3
int x = 12lu; // 7.3
}
void misra_12_1() {

View File

@ -82,7 +82,7 @@ def misra_7_1(rawTokens):
def misra_7_3(rawTokens):
for tok in rawTokens:
if re.match(r'^[0-9]+l+$', tok.str):
if re.match(r'^[0-9]+l', tok.str):
reportError(tok, 7, 3)