From eb5c1be832f933916254966c4be6834e40ae081c Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 4 Oct 2012 11:01:57 -0600 Subject: [PATCH] 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. --- regexec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 1.8.3.1