aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/pre-process.c
diff options
authorwelinder@troll.com <welinder@troll.com>2004-08-12 14:01:32 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:02:40 -0700
commitcf5114a103ccc46c8b489d10057bff977690174b (patch)
tree1ac8d7ae0d76d6cec32ad24f499b223cb6f2d64a /pre-process.c
parent81a6bc94e2776db305b13a92e9821e776a783ce5 (diff)
downloadsparse-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.c2
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;