mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-23 17:29:23 +08:00
Drop redundant test with isnumchar
Fix pvs-studio error 'V501 There are identical sub-expressions '(c) == '_'' to the left and to the right of the '||' operator.'. isnumchar() is a macro defined as (nasm_isalnum(c) || (c) == '_') Signed-off-by: Martin Lindhe <martin-commit@ubique.se> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
9b5aa2e6d0
commit
b150e386ae
@ -1054,7 +1054,7 @@ static Token *tokenize(char *line)
|
||||
is_float = true;
|
||||
if (*p == '+' || *p == '-')
|
||||
p++;
|
||||
} else if (isnumchar(c) || c == '_')
|
||||
} else if (isnumchar(c))
|
||||
; /* just advance */
|
||||
else if (c == '.') {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user