summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-02-20 10:28:58 -0700
committerKarl Williamson <public@khwilliamson.com>2014-02-20 11:47:05 -0700
commitb9f2b68390014b991c227e8c56d3e813584245b9 (patch)
treecda819a22dfe1ff503439d761b579ba313a4754c /pp_sys.c
parent78ae08632cb098bf2ca76b516ad9ac6d22705ae7 (diff)
downloadperl-b9f2b68390014b991c227e8c56d3e813584245b9.tar.gz
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.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 3ec7dbe646..6c4e2c7f63 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2085,7 +2085,7 @@ PP(pp_eof)
if (!MAXARG && (PL_op->op_flags & OPf_SPECIAL)) { /* eof() */
if (io && !IoIFP(io)) {
- if ((IoFLAGS(io) & IOf_START) && av_len(GvAVn(gv)) < 0) {
+ if ((IoFLAGS(io) & IOf_START) && av_tindex(GvAVn(gv)) < 0) {
IoLINES(io) = 0;
IoFLAGS(io) &= ~IOf_START;
do_open(gv, "-", 1, FALSE, O_RDONLY, 0, NULL);