From b9f2b68390014b991c227e8c56d3e813584245b9 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 20 Feb 2014 10:28:58 -0700 Subject: Change av_len calls to av_tindex for clarity av_tindex is a more clearly named synonym for av_len, available starting in v5.18. This changes the core uses to it, including modules in /ext, which are not dual-lifed. --- os2/os2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os2') diff --git a/os2/os2.c b/os2/os2.c index 94b45416c6..d4e9c90aa7 100644 --- a/os2/os2.c +++ b/os2/os2.c @@ -2011,7 +2011,7 @@ mod2fname(pTHX_ SV *sv) if (SvTYPE(sv) != SVt_PVAV) Perl_croak_nocontext("Not array reference given to mod2fname"); - avlen = av_len((AV*)sv); + avlen = av_tindex((AV*)sv); if (avlen < 0) Perl_croak_nocontext("Empty array reference given to mod2fname"); -- cgit v1.2.1