summaryrefslogtreecommitdiff
path: root/pp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-08-19 14:11:13 -0600
committerKarl Williamson <khw@cpan.org>2020-08-19 16:12:19 -0600
commitae4370caa7bb8b584eca0d31d18215c616ba75ac (patch)
treebdb1ccbe65128fff6de58d11719a3a19fff072bd /pp.h
parent7235b25f6ae1b0e6a12d265509a4905841de8eed (diff)
downloadperl-ae4370caa7bb8b584eca0d31d18215c616ba75ac.tar.gz
pp.h.c: Convert to use av_count()
Diffstat (limited to 'pp.h')
-rw-r--r--pp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.h b/pp.h
index 1ab9a47f11..4805dfb486 100644
--- a/pp.h
+++ b/pp.h
@@ -599,7 +599,7 @@ Does not use C<TARG>. See also C<L</XPUSHu>>, C<L</mPUSHu>> and C<L</PUSHu>>.
SSize_t i; \
SSize_t len; \
assert(SvTYPE(tmpsv) == SVt_PVAV); \
- len = av_tindex((AV *)tmpsv) + 1; \
+ len = av_count((AV *)tmpsv); \
(void)POPs; /* get rid of the arg */ \
EXTEND(sp, len); \
for (i = 0; i < len; ++i) \