From 3edf9486c92a7daddcd1f5992fe33af31246925c Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 22 Apr 1988 18:34:22 +0000 Subject: [PATCH] fixed to not accept dots in numbers --- mach/proto/as/comm5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mach/proto/as/comm5.c b/mach/proto/as/comm5.c index 60b65f6c9..37246ad4e 100644 --- a/mach/proto/as/comm5.c +++ b/mach/proto/as/comm5.c @@ -311,7 +311,7 @@ register c; c += ('a' - 'A'); *p++ = c; c = nextchar(); - } while (ISALNUM(c)); + } while (isalnum(c)); peekc = c; *p = '\0'; c = *--p; @@ -335,7 +335,7 @@ register c; if (c > '9') c -= ('a' - '9' - 1); c -= '0'; - if (c >= radix) + if ((unsigned)c >= radix) serror("digit exceeds radix"); yylval.y_valu = yylval.y_valu * radix + c; } -- 2.34.1