From 8272d5bdfa99b9fd92be2d34da4d04eec4c6ddab Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 19 Aug 2020 19:06:01 -0600 Subject: Use av_top_index() instead of av_tindex() I was never happy with this short form, and other people weren't either. Now that most things are better expressed in terms of av_count, convert the few remaining items that are clearer when referring to an index into using the fully spelled out form --- universal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'universal.c') 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) { -- cgit v1.2.1