summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-08-17 09:52:48 +0100
committerDavid Mitchell <davem@iabyn.com>2016-08-17 13:38:56 +0100
commit1d7e6444bd515142acf34ef230b50f9d80ab9017 (patch)
treeb2bc6f9f1a1f3e3eb4b3d4d411fb68ff0bc92014 /av.c
parent96e6a0bc89e2585b9ed65f699450f6c52ee6aadc (diff)
downloadperl-1d7e6444bd515142acf34ef230b50f9d80ab9017.tar.gz
av_fetch(): use AvFILLp rather than AvFILL
The point in the code which uses AvFILL will never be reached if the array is tied, so use AvFILLp insead, which directly accesses the xav_fill field. This only affects the $a[-N] branch: the $a[+N] branch already uses AvFILLp().
Diffstat (limited to 'av.c')
-rw-r--r--av.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/av.c b/av.c
index 2f819717a7..a48702bb7d 100644
--- a/av.c
+++ b/av.c
@@ -269,7 +269,7 @@ Perl_av_fetch(pTHX_ AV *av, SSize_t key, I32 lval)
}
if (key < 0) {
- key += AvFILL(av) + 1;
+ key += AvFILLp(av) + 1;
if (key < 0)
return NULL;
}