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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to