diff options
Diffstat (limited to 'dtc-lexer.l')
-rw-r--r-- | dtc-lexer.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dtc-lexer.l b/dtc-lexer.l index 369407a..0cd7e67 100644 --- a/dtc-lexer.l +++ b/dtc-lexer.l @@ -75,11 +75,11 @@ static bool pop_input_file(void); char *line, *tmp, *fn; /* skip text before line # */ line = yytext; - while (!isdigit(*line)) + while (!isdigit((unsigned char)*line)) line++; /* skip digits in line # */ tmp = line; - while (!isspace(*tmp)) + while (!isspace((unsigned char)*tmp)) tmp++; /* "NULL"-terminate line # */ *tmp = '\0'; |