diff options
| author | welinder@troll.com <welinder@troll.com> | 2004-08-12 14:01:32 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:02:40 -0700 |
| commit | cf5114a103ccc46c8b489d10057bff977690174b (patch) | |
| tree | 1ac8d7ae0d76d6cec32ad24f499b223cb6f2d64a /pre-process.c | |
| parent | 81a6bc94e2776db305b13a92e9821e776a783ce5 (diff) | |
| download | sparse-dev-cf5114a103ccc46c8b489d10057bff977690174b.tar.gz | |
pre-process.c, lib.c:
Never call isdigit/isspace on type char, use unsigned char only.
Diffstat (limited to 'pre-process.c')
| -rw-r--r-- | pre-process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-process.c b/pre-process.c index 8fb5d280..65b1b636 100644 --- a/pre-process.c +++ b/pre-process.c @@ -368,7 +368,7 @@ static enum token_type combine(struct token *left, struct token *right, char *p) return TOKEN_NUMBER; } - if (p[0] == '.' && isdigit(p[1])) + if (p[0] == '.' && isdigit((unsigned char)p[1])) return TOKEN_NUMBER; return TOKEN_SPECIAL; |
