summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-16 17:42:34 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-16 17:42:34 +0000
commitf878fbec0f3fac7e674b5c48a29bb093a47749b9 (patch)
tree6664cf01490dc67b2c30019680ba70e4f1f53d08
parent1d3434b8c1ecb43ba830424cfca969ab84444ed7 (diff)
downloadperl-f878fbec0f3fac7e674b5c48a29bb093a47749b9.tar.gz
[win32] fix misplaced SPAGAIN that caused successful s/// to fail to
return a value on the stack p4raw-id: //depot/win32/perl@1000
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 9e9ee3ce91..8c67b44282 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1695,13 +1695,13 @@ PP(pp_subst)
sv_free(dstr);
TAINT_IF(rxtainted & 1);
+ SPAGAIN;
PUSHs(sv_2mortal(newSViv((I32)iters)));
(void)SvPOK_only(TARG);
TAINT_IF(rxtainted);
SvSETMAGIC(TARG);
SvTAINT(TARG);
- SPAGAIN;
LEAVE_SCOPE(oldsave);
RETURN;
}