This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
duplicate full index for SAVEt_AELEM
[perl5.git] / sv.c
diff --git a/sv.c b/sv.c
index c1a33fb..e39f44a 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -14974,8 +14974,8 @@ Perl_ss_dup(pTHX_ PerlInterpreter *proto_perl, CLONE_PARAMS* param)
        case SAVEt_AELEM:               /* array element */
            sv = (const SV *)POPPTR(ss,ix);
            TOPPTR(nss,ix) = SvREFCNT_inc(sv_dup_inc(sv, param));
-           i = POPINT(ss,ix);
-           TOPINT(nss,ix) = i;
+           iv = POPIV(ss,ix);
+           TOPIV(nss,ix) = iv;
            av = (const AV *)POPPTR(ss,ix);
            TOPPTR(nss,ix) = av_dup_inc(av, param);
            break;