aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/yacc/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/yacc/reader.c')
-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 73178741639f..f1ca8aee4359 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;