diff options
author | kevans <kevans@FreeBSD.org> | 2017-08-17 13:48:46 +0000 |
---|---|---|
committer | kevans <kevans@FreeBSD.org> | 2017-08-17 13:48:46 +0000 |
commit | 3427b972705992ab10e73d3d30b116d40d42e439 (patch) | |
tree | 90cb7d3cf6b77f8c601eb042fe2a12c59a924d94 | |
parent | f04468c1b791e0af4267e1fb8e9302a4a52acb87 (diff) | |
download | FreeBSD-src-3427b972705992ab10e73d3d30b116d40d42e439.zip FreeBSD-src-3427b972705992ab10e73d3d30b116d40d42e439.tar.gz |
bsdgrep: fix build when linking against libgnuregex
MFC r322618: bsdgrep: cast pmatch.rm_so to fix build when linking against
libgnuregex
Approved by: emaste (mentor)
-rw-r--r-- | usr.bin/grep/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c index 7b0a50b..627916c 100644 --- a/usr.bin/grep/util.c +++ b/usr.bin/grep/util.c @@ -450,7 +450,7 @@ procline(struct parsec *pc) */ if (r == REG_NOMATCH && (retry == pc->lnstart || - pmatch.rm_so + 1 < retry)) + (unsigned int)pmatch.rm_so + 1 < retry)) retry = pmatch.rm_so + 1; if (r == REG_NOMATCH) continue; |