summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-10-19 10:48:49 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2019-05-28 13:43:53 +0100
commit2324bdb9a8664e4dd5b50ba32a17f9794126d2fd (patch)
tree80b85093ec20157ecba89ef7746558611eea37a6 /pp.c
parent0478e945a30d8c53408e52b0e5844af899471b96 (diff)
downloadperl-2324bdb9a8664e4dd5b50ba32a17f9794126d2fd.tar.gz
Remove remaining assignments to SvCUR and SvLEN in core
Also make the macros non-lvalues under PERL_CORE
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 62a548bc0a..26c682d6a9 100644
--- a/pp.c
+++ b/pp.c
@@ -2543,7 +2543,7 @@ S_scomplement(pTHX_ SV *targ, SV *sv)
if (len && ! utf8_to_bytes(tmps, &len)) {
Perl_croak(aTHX_ FATAL_ABOVE_FF_MSG, PL_op_desc[PL_op->op_type]);
}
- SvCUR(TARG) = len;
+ SvCUR_set(TARG, len);
SvUTF8_off(TARG);
}