summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-11-20 08:55:43 -0700
committerKarl Williamson <khw@cpan.org>2018-11-20 08:59:24 -0700
commitbc0faf5e31ccbe2494120ec2a30c1a73ac3622fe (patch)
treef09a10dd547a73e568e49dbabf8c6467ff05e66a
parent516795a0389685dee830e0ca027811f000a5ed08 (diff)
downloadperl-bc0faf5e31ccbe2494120ec2a30c1a73ac3622fe.tar.gz
regcomp.c: Rmv malformed assert()
This had a plain '=' instead of an '==', thus setting the value in the process of asserting it, hence would always be true. But changing it to '==' causes the assertion to fail in various cases. I need to rethink this, so in the meantime am simply removing it. Spotted by Dave Mitchell++
-rw-r--r--regcomp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/regcomp.c b/regcomp.c
index 7ffba08d59..ddd2752734 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -7534,9 +7534,6 @@ Perl_re_op_compile(pTHX_ SV ** const patternp, int pat_count,
goto redo_parse;
}
- /* In a stable state, as here, this must be true */
- assert(RExC_size = RExC_emit + 1);
-
/* Here, we have successfully parsed and generated the pattern's program
* for the regex engine. We are ready to finish things up and look for
* optimizations. */