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
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b3cda8
)
regexec.c: Remove redundant line.
author
Karl Williamson
<public@khwilliamson.com>
Sun, 31 Oct 2010 16:33:50 +0000
(10:33 -0600)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 31 Oct 2010 21:56:46 +0000
(14:56 -0700)
Now that reginclass is guaranteed to return the match length upon
success, the caller need not do it again.
regexec.c
patch
|
blob
|
blame
|
history
diff --git
a/regexec.c
b/regexec.c
index
078b670
..
c80e45a
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-3633,7
+3633,7
@@
S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
goto anyof_fail;
if (locinput >= PL_regeol)
sayNO;
- locinput += inclasslen
? inclasslen : UTF8SKIP(locinput)
;
+ locinput += inclasslen;
nextchr = UCHARAT(locinput);
break;
}