Skip to content

Commit aa6495a

Browse files
committed
Merge pull request #21 from ya1gaurav/patch-4
avoid duplicate check of markid.
2 parents e824ddb + 2a525e5 commit aa6495a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/regex/v4/basic_regex_parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2650,7 +2650,7 @@ bool basic_regex_parser<charT, traits>::parse_perl_extension()
26502650
//
26512651
// allow backrefs to this mark:
26522652
//
2653-
if((markid > 0) && (markid < (int)(sizeof(unsigned) * CHAR_BIT)))
2653+
if(markid < (int)(sizeof(unsigned) * CHAR_BIT))
26542654
this->m_backrefs |= 1u << (markid - 1);
26552655
}
26562656
return true;

0 commit comments

Comments
 (0)