This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regexec.c: Turn test into an assertion
[perl5.git]
/
regexec.c
diff --git
a/regexec.c
b/regexec.c
index
89da115
..
6438526
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-5552,8
+5552,7
@@
NULL
* of the quantifier and the EXACT-like node. -- japhy
*/
* 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;
if (HAS_TEXT(next) || JUMPABLE(next)) {
U8 *s;
regnode *text_node = next;