Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Oct 2011 04:39:18 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226047 - head/usr.bin/grep/regex
Message-ID:  <201110060439.p964dIwT042829@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)						\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110060439.p964dIwT042829>