summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicolas R <atoomic@cpan.org>2017-09-25 13:37:06 -0500
committerTony Cook <tony@develop-help.com>2017-10-19 14:21:10 +1100
commit59c3c222a42121edb1b3cdd9c71d3c878e3ddb18 (patch)
tree0297f2d6baffec7d003d2b419aa9f9d75d5ca36e /toke.c
parentdc280c2b67516b7246d304d3e555b7b6dbc9f907 (diff)
downloadperl-59c3c222a42121edb1b3cdd9c71d3c878e3ddb18.tar.gz
Use SvLEN_set/SvCUR_set in a few extra locations
SvLEN was set without using the generic macro SvLEN_set. Use it in three extra locations, and also use SvCUR_set instead of SvCUR.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 46dba4d430..08a1074703 100644
--- a/toke.c
+++ b/toke.c
@@ -4443,8 +4443,8 @@ Perl_filter_add(pTHX_ filter_t funcp, SV *datasv)
PL_parser->last_uni = buf + last_uni_pos;
if (PL_parser->last_lop)
PL_parser->last_lop = buf + last_lop_pos;
- SvLEN(linestr) = SvCUR(linestr);
- SvCUR(linestr) = s-SvPVX(linestr);
+ SvLEN_set(linestr, SvCUR(linestr));
+ SvCUR_set(linestr, s - SvPVX(linestr));
PL_parser->filtered = 1;
break;
}