diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-05 20:19:34 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-05 20:19:34 +0000 |
commit | 1bb4c83566b57946d55795ecb4df42c7692478c2 (patch) | |
tree | a262d11e55d07827aafb607c2a17dd770771da9e | |
parent | 9ae3433d9acf2239ad936d472a709712f4962dc3 (diff) | |
download | perl-1bb4c83566b57946d55795ecb4df42c7692478c2.tar.gz |
Perl_save_alloc can use the new(er) SSGROW rather than looping.
p4raw-id: //depot/perl@27726
-rw-r--r-- | scope.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |