Skip to content

Commit 4f58fed

Browse files
committed
Change 33507 had a const too far (Perl_mg_dup()'s mg is assigned to).
p4raw-id: //depot/perl@33508
1 parent 66ceb53 commit 4f58fed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ Ap |void |re_dup_guts |NN const REGEXP *sstr|NN REGEXP *dstr \
11161116
Ap |PerlIO*|fp_dup |NULLOK PerlIO *const fp|const char type|NN CLONE_PARAMS *const param
11171117
ApR |DIR* |dirp_dup |NULLOK DIR *const dp
11181118
ApR |GP* |gp_dup |NULLOK GP *const gp|NN CLONE_PARAMS *const param
1119-
ApR |MAGIC* |mg_dup |NULLOK MAGIC *const mg|NN CLONE_PARAMS *const param
1119+
ApR |MAGIC* |mg_dup |NULLOK MAGIC *mg|NN CLONE_PARAMS *const param
11201120
ApR |SV* |sv_dup |NULLOK const SV* sstr|NN CLONE_PARAMS* param
11211121
Ap |void |rvpv_dup |NN SV* dstr|NN const SV *sstr|NN CLONE_PARAMS* param
11221122
Ap |yy_parser*|parser_dup |NULLOK const yy_parser *const proto|NN CLONE_PARAMS *const param

proto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4055,7 +4055,7 @@ PERL_CALLCONV GP* Perl_gp_dup(pTHX_ GP *const gp, CLONE_PARAMS *const param)
40554055
#define PERL_ARGS_ASSERT_GP_DUP \
40564056
assert(param)
40574057

4058-
PERL_CALLCONV MAGIC* Perl_mg_dup(pTHX_ MAGIC *const mg, CLONE_PARAMS *const param)
4058+
PERL_CALLCONV MAGIC* Perl_mg_dup(pTHX_ MAGIC *mg, CLONE_PARAMS *const param)
40594059
__attribute__warn_unused_result__
40604060
__attribute__nonnull__(pTHX_2);
40614061
#define PERL_ARGS_ASSERT_MG_DUP \

sv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10189,7 +10189,7 @@ Perl_gp_dup(pTHX_ GP *const gp, CLONE_PARAMS *const param)
1018910189
/* duplicate a chain of magic */
1019010190

1019110191
MAGIC *
10192-
Perl_mg_dup(pTHX_ MAGIC *const mg, CLONE_PARAMS *const param)
10192+
Perl_mg_dup(pTHX_ MAGIC *mg, CLONE_PARAMS *const param)
1019310193
{
1019410194
MAGIC *mgprev = (MAGIC*)NULL;
1019510195
MAGIC *mgret;

0 commit comments

Comments
 (0)