summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/yacc/reader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/yacc/reader.c b/usr.bin/yacc/reader.c
index 7317874..f1ca8ae 100644
--- a/usr.bin/yacc/reader.c
+++ b/usr.bin/yacc/reader.c
@@ -719,7 +719,7 @@ get_literal(void)
++cptr;
}
}
- if (n > UCHAR_MAX) illegal_character(c_cptr);
+ if (n > (int)UCHAR_MAX) illegal_character(c_cptr);
c = n;
break;
@@ -735,7 +735,7 @@ get_literal(void)
if (i < 0 || i >= 16) break;
++cptr;
n = (n << 4) + i;
- if (n > UCHAR_MAX) illegal_character(c_cptr);
+ if (n > (int)UCHAR_MAX) illegal_character(c_cptr);
}
c = n;
break;
OpenPOWER on IntegriCloud