Skip to content

Commit

Permalink
simplify topdl handling of stack for called method
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jun 9, 2024
1 parent cd5ffff commit e914633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Basic/Core/Core.xs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ topdl(klass, arg1, ...)
(!SvROK(arg1) && SvTYPE(arg1) < SVt_PVAV) ||
(SvROK(arg1) && SvTYPE(SvRV(arg1)) == SVt_PVAV)
) {
SP -= items; PUSHMARK(SP); SPAGAIN; /* these pass this set of args on */
PUSHMARK(SP - items); /* this passes current set of args on */
int retvals = perl_call_method("new", G_SCALAR);
SPAGAIN;
if (retvals != 1) barf("new returned no values");
Expand Down

0 comments on commit e914633

Please sign in to comment.