svn commit: r226047 - head/usr.bin/grep/regex

Xin LI delphij at FreeBSD.org
Thu Oct 6 04:39:18 UTC 2011


Author: delphij
Date: Thu Oct  6 04:39:18 2011
New Revision: 226047
URL: http://svn.freebsd.org/changeset/base/226047

Log:
  Fix build on i386 and arm.
  
  Tested with:	make universe
  Pointy hat to:	delphij

Modified:
  head/usr.bin/grep/regex/tre-fastmatch.c

Modified: head/usr.bin/grep/regex/tre-fastmatch.c
==============================================================================
--- head/usr.bin/grep/regex/tre-fastmatch.c	Wed Oct  5 22:08:17 2011	(r226046)
+++ head/usr.bin/grep/regex/tre-fastmatch.c	Thu Oct  6 04:39:18 2011	(r226047)
@@ -163,7 +163,7 @@ static int	fastcmp(const fastmatch_t *fg
       shift = bc;							\
     else								\
       {									\
-	ts = ((long)u - v < 0) ? 0 : (u - v);				\
+	ts = (u >= v) ? (u - v) : 0;					\
 	shift = MAX(ts, bc);						\
 	shift = MAX(shift, gs);						\
 	if (shift == gs)						\


More information about the svn-src-all mailing list