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
regcomp.c: Add assertion
[perl5.git]
/
regcomp.c
diff --git
a/regcomp.c
b/regcomp.c
index
f0adce9
..
3b26946
100644
(file)
--- a/
regcomp.c
+++ b/
regcomp.c
@@
-16794,6
+16794,7
@@
S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
"Ignoring zero length \\N{} in character class");
}
else { /* cp_count > 1 */
+ assert(cp_count > 1);
if (! RExC_in_multi_char_class) {
if (invert || range || *RExC_parse == '-') {
if (strict) {