diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2005-12-31 21:36:05 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2005-12-31 21:36:05 +0000 |
commit | 4c901e72a9a1fb951bea802158d49869bfdb0dbe (patch) | |
tree | 391fa25193c939c350ae7d983d81b91b71ad5e70 /util.c | |
parent | 0cf35e6a9dd43c567c5c58f094ef1c96461c1230 (diff) | |
download | perl-4c901e72a9a1fb951bea802158d49869bfdb0dbe.tar.gz |
tidy index arrangements in new MY_CXT code
p4raw-id: //depot/perl@26554
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5220,9 +5220,9 @@ Perl_my_cxt_init(pTHX_ int *index, size_t size) } /* make sure the array is big enough */ - if (PL_my_cxt_size < *index + 1) { - if (PL_my_cxt_list) { - while (PL_my_cxt_size < *index + 1) + if (PL_my_cxt_size <= *index) { + if (PL_my_cxt_size) { + while (PL_my_cxt_size <= *index) PL_my_cxt_size *= 2; Renew(PL_my_cxt_list, PL_my_cxt_size, void *); } |