]> granicus.if.org Git - onig/commitdiff
refactoring
authorK.Kosako <kosako@sofnec.co.jp>
Tue, 13 Aug 2019 07:32:55 +0000 (16:32 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Tue, 13 Aug 2019 23:41:44 +0000 (08:41 +0900)
src/regcomp.c

index 9f530f7ea1d14b10f36ed014430dbc17d6ef198a..87213c3544d442fd1abd70d0f914abc217b276c7 100644 (file)
@@ -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