summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-09-29 22:58:55 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-10-01 12:51:56 -0700
commit01680ee999d21aaacc08a6e7e581c75fd81e30eb (patch)
tree84d64f3cf1bb1b9e0c45fda9a7b6da944a4c278c /pp.c
parent6582db62b4fd96c49eac4d2a93589be8f4c17da3 (diff)
downloadperl-01680ee999d21aaacc08a6e7e581c75fd81e30eb.tar.gz
Make 4-arg substr call FETCH once when upgrading target
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 171cb87358..e91db87adf 100644
--- a/pp.c
+++ b/pp.c
@@ -3066,7 +3066,7 @@ PP(pp_substr)
tmps = SvPV_force_nomg(sv, curlen);
if (DO_UTF8(repl_sv) && repl_len) {
if (!DO_UTF8(sv)) {
- sv_utf8_upgrade(sv);
+ sv_utf8_upgrade_nomg(sv);
curlen = SvCUR(sv);
}
}