diff options
author | David Mitchell <davem@iabyn.com> | 2016-08-17 09:52:48 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-08-17 13:38:56 +0100 |
commit | 1d7e6444bd515142acf34ef230b50f9d80ab9017 (patch) | |
tree | b2bc6f9f1a1f3e3eb4b3d4d411fb68ff0bc92014 /av.c | |
parent | 96e6a0bc89e2585b9ed65f699450f6c52ee6aadc (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |