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:
parent
a8ec96af28
commit
de3d7a8286
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322618
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user