From 6d4a0c96d37560d21d9008530e337d515f9c8992 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 9 Nov 2010 02:51:38 +0000 Subject: Fix the build on 64-bit hosts. WARNS=6 fails on them. --- usr.bin/yacc/reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/yacc') 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; -- cgit v1.2.3