nasm.h: fix definition of isidchar()

isidchar() also should accept digits.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2018-11-28 13:02:12 -08:00
parent c77f5079e5
commit 9953992686

View File

@ -400,7 +400,7 @@ static inline bool isidstart(char c)
}
static inline bool isidchar(char c)
{
return isidstart(c) || c == '$' || c == '#' || c == '~';
return isidstart(c) || nasm_isdigit(c) || c == '$' || c == '#' || c == '~';
}
static inline bool isbrcchar(char c)