Skip to content

Instantly share code, notes, and snippets.

@arodland
Created February 2, 2016 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arodland/833693a99c22db1ec868 to your computer and use it in GitHub Desktop.
Save arodland/833693a99c22db1ec868 to your computer and use it in GitHub Desktop.
diff --git a/ListUtil.xs b/ListUtil.xs
index a7cd20c..46f8d4d 100644
--- a/ListUtil.xs
+++ b/ListUtil.xs
@@ -383,6 +383,7 @@ CODE:
PUSH_MULTICALL(cv);
for(index = 1 ; index < items ; index++) {
+ SvTEMP_off(args[index]);
GvSV(PL_defgv) = args[index];
MULTICALL;
if(SvTRUEx(*PL_stack_sp)) {
@@ -406,6 +407,7 @@ CODE:
{
for(index = 1 ; index < items ; index++) {
dSP;
+ SvTEMP_off(args[index]);
GvSV(PL_defgv) = args[index];
PUSHMARK(SP);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment