Misra: improve 7.3
This commit is contained in:
parent
f6afbbe65d
commit
024b9c87d0
|
@ -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() {
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue