From: kvigor Date: Mon, 8 Jan 2001 18:10:51 +0000 (+0000) Subject: Infinite loop in getst X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=71d40cb1ec3526ad43a211837bb830f357c184ed;p=fw%2Fsdcc Infinite loop in getst git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@524 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/as/mcs51/aslex.c b/as/mcs51/aslex.c index cd43a97b..a0af00c6 100644 --- a/as/mcs51/aslex.c +++ b/as/mcs51/aslex.c @@ -165,7 +165,7 @@ char *id; do { if (p < &id[NCPS]) *p++ = c; - } while (ctype[c=get()] & (~(SPACE|ILL))); + } while (ctype[c=get()] & (0xFF - (SPACE|ILL))); unget(c); while (p < &id[NCPS]) *p++ = 0;