summaryrefslogtreecommitdiff
path: root/vutil.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 /vutil.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 'vutil.c')
-rw-r--r--vutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vutil.c b/vutil.c
index 2367489153..4314fb9280 100644
--- a/vutil.c
+++ b/vutil.c
@@ -533,7 +533,7 @@ Perl_new_version(pTHX_ SV *ver)
under = ninstr(raw, raw+len, underscore, underscore + 1);
if (under) {
Move(under + 1, under, raw + len - under - 1, char);
- SvCUR(rv)--;
+ SvCUR_set(rv, SvCUR(rv) - 1);
*SvEND(rv) = '\0';
}
/* this is for consistency with the pure Perl class */