diff options
Diffstat (limited to 'universal.c')
-rw-r--r-- | universal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/universal.c b/universal.c index 9b032bdfaf..6797b9fb53 100644 --- a/universal.c +++ b/universal.c @@ -789,7 +789,7 @@ XS(XS_PerlIO_get_layers) AV* const av = PerlIO_get_layers(aTHX_ input ? IoIFP(io) : IoOFP(io)); SSize_t i; - const SSize_t last = av_tindex(av); + const SSize_t last = av_top_index(av); SSize_t nitem = 0; for (i = last; i >= 0; i -= 3) { |