diff options
author | Karl Williamson <khw@cpan.org> | 2018-11-20 08:55:43 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-11-20 08:59:24 -0700 |
commit | bc0faf5e31ccbe2494120ec2a30c1a73ac3622fe (patch) | |
tree | f09a10dd547a73e568e49dbabf8c6467ff05e66a | |
parent | 516795a0389685dee830e0ca027811f000a5ed08 (diff) | |
download | perl-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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. */ |