getst(id, c) was looping forever so changed it as in mcs51 port
[fw/sdcc] / as / z80 / aslex.c
index 9eab59a49bdc0156f6b10dd4348f3279d0bd0a16..4181427131e9880cc58b2546e9c3c577b49b372e 100644 (file)
@@ -164,7 +164,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;