summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-12-01 11:54:42 +0000
committerNicholas Clark <nick@ccl4.org>2008-12-01 11:54:42 +0000
commit35d4f826f8e56c33d13476d0f2f79c923032b721 (patch)
tree0a96252242eb7b62d66bfb9a179ef9ca66d0a535 /scope.c
parentbe84297eef8d269e574a1aac0dbf18f3c3b7341d (diff)
downloadperl-35d4f826f8e56c33d13476d0f2f79c923032b721.tar.gz
Re-order Perl_save_delete() to PTR, INT, PTR.
p4raw-id: //depot/perl@34967
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scope.c b/scope.c
index 7845fc5a6b..df661ae25c 100644
--- a/scope.c
+++ b/scope.c
@@ -506,8 +506,8 @@ Perl_save_delete(pTHX_ HV *hv, char *key, I32 klen)
PERL_ARGS_ASSERT_SAVE_DELETE;
SSCHECK(4);
- SSPUSHINT(klen);
SSPUSHPTR(key);
+ SSPUSHINT(klen);
SSPUSHPTR(SvREFCNT_inc_simple(hv));
SSPUSHINT(SAVEt_DELETE);
}
@@ -861,8 +861,9 @@ Perl_leave_scope(pTHX_ I32 base)
case SAVEt_DELETE:
ptr = SSPOPPTR;
hv = MUTABLE_HV(ptr);
+ i = SSPOPINT;
ptr = SSPOPPTR;
- (void)hv_delete(hv, (char*)ptr, (I32)SSPOPINT, G_DISCARD);
+ (void)hv_delete(hv, (char*)ptr, i, G_DISCARD);
SvREFCNT_dec(hv);
Safefree(ptr);
break;