From: K.Kosako Date: Tue, 13 Aug 2019 07:32:55 +0000 (+0900) Subject: refactoring X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=027067e88ea4f9fed64d62b7fa5a4cbb568a2465;p=onig refactoring --- diff --git a/src/regcomp.c b/src/regcomp.c index 9f530f7..87213c3 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -5497,9 +5497,6 @@ concat_left_node_opt_info(OnigEncoding enc, OptNode* to, OptNode* add) if (to->spr.len > 0) { if (add->len.max > 0) { - if (to->spr.len > (int )add->len.max) - to->spr.len = add->len.max; - if (to->spr.mmd.max == 0) select_opt_exact(enc, &to->sb, &to->spr); else