summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-10-06 04:39:18 +0000
committerdelphij <delphij@FreeBSD.org>2011-10-06 04:39:18 +0000
commit6216a3cd2960b79614885bd0ad26a5e97bdf2063 (patch)
treece1a317327f7ac0c27cbd39d2c90053d7fb57652 /usr.bin/grep
parent038442ad80c21a07c19532a176030e2ca51fdd9d (diff)
downloadFreeBSD-src-6216a3cd2960b79614885bd0ad26a5e97bdf2063.zip
FreeBSD-src-6216a3cd2960b79614885bd0ad26a5e97bdf2063.tar.gz
Fix build on i386 and arm.
Tested with: make universe Pointy hat to: delphij
Diffstat (limited to 'usr.bin/grep')
-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 9c5aab1..e6a35ff 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) \
OpenPOWER on IntegriCloud