From 2a525e5aa6213844fe8ea63cbb33e12e639c2402 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Tue, 3 Nov 2015 14:12:17 +0530 Subject: [PATCH] avoid duplicate check of markid. Markid is already checked to be >0. --- include/boost/regex/v4/basic_regex_parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/regex/v4/basic_regex_parser.hpp b/include/boost/regex/v4/basic_regex_parser.hpp index 4a80ab9c..d097eed9 100644 --- a/include/boost/regex/v4/basic_regex_parser.hpp +++ b/include/boost/regex/v4/basic_regex_parser.hpp @@ -2650,7 +2650,7 @@ option_group_jump: // // allow backrefs to this mark: // - if((markid > 0) && (markid < (int)(sizeof(unsigned) * CHAR_BIT))) + if(markid < (int)(sizeof(unsigned) * CHAR_BIT)) this->m_backrefs |= 1u << (markid - 1); } return true;