bsdgrep: cast pmatch.rm_so to fix build when linking against libgnuregex

Reported by:	many
Approved by:	emaste (mentor)
MFC after:	immediate
This commit is contained in:
kevans 2017-08-17 13:40:45 +00:00
parent 0923281ac1
commit 6dbe6995bd

View File

@ -443,7 +443,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;