This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove remaining assignments to SvCUR and SvLEN in core
[perl5.git] / vutil.c
diff --git a/vutil.c b/vutil.c
index 2367489..4314fb9 100644 (file)
--- 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 */