This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c: Don't retest the same byte immediately
authorKarl Williamson <khw@cpan.org>
Fri, 2 Feb 2018 02:42:50 +0000 (19:42 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 2 Feb 2018 04:37:19 +0000 (21:37 -0700)
commit8b37b57be5561e87de1003b536c9dfbfd6902d10
tree9197e04f3f36a4bd94e752d8ea1fcedca793e7c2
parent1654584e05038fee2cc4307f292f18e445d0e50f
regexec.c: Don't retest the same byte immediately

In this macro, COND has just returned true for the given byte.  We then
need to test that the rest of the relevant portion of the input string
and pattern match.  But before this commit, we started at the byte we
already know the answer for.  Change to test starting one position over.
regexec.c