diff options
author | Xin LI <delphij@FreeBSD.org> | 2011-10-06 04:39:18 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2011-10-06 04:39:18 +0000 |
commit | 87ef28317615ab9893978327947c241eb0afb12e (patch) | |
tree | ce1a317327f7ac0c27cbd39d2c90053d7fb57652 /usr.bin/grep/regex/tre-fastmatch.c | |
parent | e146993e33182e13df79b5a957f2734f663fd836 (diff) | |
download | src-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.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 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) \ |