Date: Tue, 9 Nov 2010 02:51:38 +0000 (UTC) From: "David E. O'Brien" <obrien@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r215027 - head/usr.bin/yacc Message-ID: <201011090251.oA92pcWY075166@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: obrien Date: Tue Nov 9 02:51:38 2010 New Revision: 215027 URL: http://svn.freebsd.org/changeset/base/215027 Log: Fix the build on 64-bit hosts. WARNS=6 fails on them. Modified: head/usr.bin/yacc/reader.c Modified: head/usr.bin/yacc/reader.c ============================================================================== --- head/usr.bin/yacc/reader.c Tue Nov 9 01:57:56 2010 (r215026) +++ head/usr.bin/yacc/reader.c Tue Nov 9 02:51:38 2010 (r215027) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011090251.oA92pcWY075166>