From 3427b972705992ab10e73d3d30b116d40d42e439 Mon Sep 17 00:00:00 2001 From: kevans Date: Thu, 17 Aug 2017 13:48:46 +0000 Subject: 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) --- usr.bin/grep/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/grep') 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; -- cgit v1.1