From: Karl Williamson Date: Thu, 4 Oct 2012 17:01:57 +0000 (-0600) Subject: regexec.c: Turn test into an assertion X-Git-Tag: upstream/5.20.0~5196 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb5c1be832f933916254966c4be6834e40ae081c;p=platform%2Fupstream%2Fperl.git regexec.c: Turn test into an assertion Commit 31c15ce5372b770c3ca899df6cf102f1ed6866ba should have made it so that the situation of a quantifier {m,n} with m>n never happens. Remove the check for it, but replace it with an assertion. --- diff --git a/regexec.c b/regexec.c index 89da115..6438526 100644 --- a/regexec.c +++ b/regexec.c @@ -5552,8 +5552,7 @@ NULL * of the quantifier and the EXACT-like node. -- japhy */ - if (ST.min > ST.max) /* XXX make this a compile-time check? */ - sayNO; + assert(ST.min <= ST.max); if (HAS_TEXT(next) || JUMPABLE(next)) { U8 *s; regnode *text_node = next;