diff options
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4988,7 +4988,7 @@ PP(pp_aeach) IV *iterp = Perl_av_iter_p(aTHX_ array); const IV current = (*iterp)++; - if (current > av_tindex(array)) { + if (current > av_top_index(array)) { *iterp = 0; if (gimme == G_SCALAR) RETPUSHUNDEF; @@ -5859,7 +5859,7 @@ PP(pp_reverse) const MAGIC *mg; bool can_preserve = SvCANEXISTDELETE(av); - for (i = 0, j = av_tindex(av); i < j; ++i, --j) { + for (i = 0, j = av_top_index(av); i < j; ++i, --j) { SV *begin, *end; if (can_preserve) { |