This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
give POP_SAVEARRAY() macro a cx arg
[perl5.git] / pp_ctl.c
index 735969c..bc8b778 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2796,7 +2796,7 @@ PP(pp_goto)
                SP += items;
                if (CxTYPE(cx) == CXt_SUB && CxHASARGS(cx)) {
                    /* Restore old @_ */
-                    POP_SAVEARRAY();
+                    POP_SAVEARRAY(cx);
                }
 
                retop = cx->blk_sub.retop;