svn commit: r226178 - user/gabor/tre-integration/contrib/tre/lib

Gabor Kovesdan gabor at FreeBSD.org
Sun Oct 9 21:40:39 UTC 2011


Author: gabor
Date: Sun Oct  9 21:40:38 2011
New Revision: 226178
URL: http://svn.freebsd.org/changeset/base/226178

Log:
  - Fix build on some architectures
  
  Submitted by:	delphij

Modified:
  user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c

Modified: user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c
==============================================================================
--- user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c	Sun Oct  9 21:39:14 2011	(r226177)
+++ user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c	Sun Oct  9 21:40:38 2011	(r226178)
@@ -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-user mailing list