Skip to content

Commit 98f7609

Browse files
ilmariLeont
authored andcommitted
Remove use of SvCUR() as lvalue
`SvCUR()` is no longer an lvalue macro under `PERL_CORE` in blead, so use `SvCUR_set()` instead. c.f. https://perl5.git.perl.org/perl.git/commitdiff/2324bdb9a8664e4dd5b50ba32a17f9794126d2fd#patch9
1 parent ef41af2 commit 98f7609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vutil/vutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ Perl_new_version(pTHX_ SV *ver)
533533
under = ninstr(raw, raw+len, underscore, underscore + 1);
534534
if (under) {
535535
Move(under + 1, under, raw + len - under - 1, char);
536-
SvCUR(rv)--;
536+
SvCUR_set(rv, SvCUR(rv) - 1);
537537
*SvEND(rv) = '\0';
538538
}
539539
/* this is for consistency with the pure Perl class */

0 commit comments

Comments
 (0)