diff options
author | delphij <delphij@FreeBSD.org> | 2011-10-06 04:39:18 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2011-10-06 04:39:18 +0000 |
commit | 6216a3cd2960b79614885bd0ad26a5e97bdf2063 (patch) | |
tree | ce1a317327f7ac0c27cbd39d2c90053d7fb57652 /usr.bin | |
parent | 038442ad80c21a07c19532a176030e2ca51fdd9d (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/grep/regex/tre-fastmatch.c | 2 |
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) \ |