aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/src/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcc/src/lex.c')
-rw-r--r--lcc/src/lex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lcc/src/lex.c b/lcc/src/lex.c
index 6643172..ec2f1ec 100644
--- a/lcc/src/lex.c
+++ b/lcc/src/lex.c
@@ -685,17 +685,18 @@ int gettok(void) {
}
goto id;
default:
- if ((map[cp[-1]]&BLANK) == 0)
+ if ((map[cp[-1]]&BLANK) == 0) {
if (cp[-1] < ' ' || cp[-1] >= 0177)
error("illegal character `\\0%o'\n", cp[-1]);
else
error("illegal character `%c'\n", cp[-1]);
+ }
}
}
}
static Symbol icon(unsigned long n, int overflow, int base) {
- if ((*cp=='u'||*cp=='U') && (cp[1]=='l'||cp[1]=='L')
- || (*cp=='l'||*cp=='L') && (cp[1]=='u'||cp[1]=='U')) {
+ if (((*cp=='u'||*cp=='U') && (cp[1]=='l'||cp[1]=='L'))
+ || ((*cp=='l'||*cp=='L') && (cp[1]=='u'||cp[1]=='U'))) {
tval.type = unsignedlong;
cp += 2;
} else if (*cp == 'u' || *cp == 'U') {