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:
Kyle Evans 2017-08-17 13:40:45 +00:00
parent a8ec96af28
commit de3d7a8286
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322618

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;