summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-05 20:19:34 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-05 20:19:34 +0000
commit1bb4c83566b57946d55795ecb4df42c7692478c2 (patch)
treea262d11e55d07827aafb607c2a17dd770771da9e
parent9ae3433d9acf2239ad936d472a709712f4962dc3 (diff)
downloadperl-1bb4c83566b57946d55795ecb4df42c7692478c2.tar.gz
Perl_save_alloc can use the new(er) SSGROW rather than looping.
p4raw-id: //depot/perl@27726
-rw-r--r--scope.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/scope.c b/scope.c
index 0070f6301f..fcdf86f39f 100644
--- a/scope.c
+++ b/scope.c
@@ -590,9 +590,7 @@ Perl_save_alloc(pTHX_ I32 size, I32 pad)
- (char*)PL_savestack);
register const I32 elems = 1 + ((size + pad - 1) / sizeof(*PL_savestack));
- /* SSCHECK may not be good enough */
- while (PL_savestack_ix + elems + 2 > PL_savestack_max)
- savestack_grow();
+ SSGROW(elems + 2);
PL_savestack_ix += elems;
SSPUSHINT(elems);