summaryrefslogtreecommitdiff
path: root/av.h
diff options
context:
space:
mode:
Diffstat (limited to 'av.h')
-rw-r--r--av.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/av.h b/av.h
index 5e39c42ea1..90ebfff7af 100644
--- a/av.h
+++ b/av.h
@@ -81,7 +81,8 @@ Same as C<av_top_index()>.
#define AvFILL(av) ((SvRMAGICAL((const SV *) (av))) \
? mg_size(MUTABLE_SV(av)) : AvFILLp(av))
-#define av_tindex(av) av_top_index(av)
+#define av_top_index(av) AvFILL(av)
+#define av_tindex(av) av_top_index(av)
/* Note that it doesn't make sense to do this:
* SvGETMAGIC(av); IV x = av_tindex_nomg(av);