aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/grep/regex/tre-fastmatch.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-10-06 04:39:18 +0000
committerXin LI <delphij@FreeBSD.org>2011-10-06 04:39:18 +0000
commit87ef28317615ab9893978327947c241eb0afb12e (patch)
treece1a317327f7ac0c27cbd39d2c90053d7fb57652 /usr.bin/grep/regex/tre-fastmatch.c
parente146993e33182e13df79b5a957f2734f663fd836 (diff)
downloadsrc-87ef28317615ab9893978327947c241eb0afb12e.tar.gz
src-87ef28317615ab9893978327947c241eb0afb12e.zip
Fix build on i386 and arm.
Tested with: make universe Pointy hat to: delphij
Notes
Notes: svn path=/head/; revision=226047
Diffstat (limited to 'usr.bin/grep/regex/tre-fastmatch.c')
-rw-r--r--usr.bin/grep/regex/tre-fastmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/regex/tre-fastmatch.c b/usr.bin/grep/regex/tre-fastmatch.c
index 9c5aab1e78d4..e6a35ff06731 100644
--- a/usr.bin/grep/regex/tre-fastmatch.c
+++ b/usr.bin/grep/regex/tre-fastmatch.c
@@ -163,7 +163,7 @@ static int fastcmp(const fastmatch_t *fg, const void *data,
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) \