Skip to content

Commit 1671346

Browse files
committed
Use new SAVESTRLEN() macro in pad.c
1 parent f550da2 commit 1671346

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pad.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ Perl_pad_new(pTHX_ int flags)
204204
SAVECOMPPAD();
205205
if (! (flags & padnew_CLONE)) {
206206
SAVESPTR(PL_comppad_name);
207-
save_strlen((STRLEN *)&PL_padix);
208-
save_strlen((STRLEN *)&PL_constpadix);
209-
save_strlen((STRLEN *)&PL_comppad_name_fill);
210-
save_strlen((STRLEN *)&PL_min_intro_pending);
211-
save_strlen((STRLEN *)&PL_max_intro_pending);
207+
SAVESTRLEN(PL_padix);
208+
SAVESTRLEN(PL_constpadix);
209+
SAVESTRLEN(PL_comppad_name_fill);
210+
SAVESTRLEN(PL_min_intro_pending);
211+
SAVESTRLEN(PL_max_intro_pending);
212212
SAVEBOOL(PL_cv_has_eval);
213213
if (flags & padnew_SAVESUB) {
214214
SAVEBOOL(PL_pad_reset_pending);
@@ -1402,17 +1402,17 @@ void
14021402
Perl_pad_block_start(pTHX_ int full)
14031403
{
14041404
ASSERT_CURPAD_ACTIVE("pad_block_start");
1405-
save_strlen((STRLEN *)&PL_comppad_name_floor);
1405+
SAVESTRLEN(PL_comppad_name_floor);
14061406
PL_comppad_name_floor = PadnamelistMAX(PL_comppad_name);
14071407
if (full)
14081408
PL_comppad_name_fill = PL_comppad_name_floor;
14091409
if (PL_comppad_name_floor < 0)
14101410
PL_comppad_name_floor = 0;
1411-
save_strlen((STRLEN *)&PL_min_intro_pending);
1412-
save_strlen((STRLEN *)&PL_max_intro_pending);
1411+
SAVESTRLEN(PL_min_intro_pending);
1412+
SAVESTRLEN(PL_max_intro_pending);
14131413
PL_min_intro_pending = 0;
1414-
save_strlen((STRLEN *)&PL_comppad_name_fill);
1415-
save_strlen((STRLEN *)&PL_padix_floor);
1414+
SAVESTRLEN(PL_comppad_name_fill);
1415+
SAVESTRLEN(PL_padix_floor);
14161416
/* PL_padix_floor is what PL_padix is reset to at the start of each
14171417
statement, by pad_reset(). We set it when entering a new scope
14181418
to keep things like this working:

0 commit comments

Comments
 (0)