summaryrefslogtreecommitdiff
path: root/av.h
diff options
context:
space:
mode:
Diffstat (limited to 'av.h')
-rw-r--r--av.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/av.h b/av.h
index a11a05b07d..c48df390c7 100644
--- a/av.h
+++ b/av.h
@@ -88,8 +88,8 @@ Same as C<av_len()>. Deprecated, use C<av_len()> instead.
#define AvREALISH(av) (SvFLAGS(av) & (SVpav_REAL|SVpav_REIFY))
-#define AvFILL(av) ((SvRMAGICAL((SV *) (av))) \
- ? mg_size((SV *) av) : AvFILLp(av))
+#define AvFILL(av) ((SvRMAGICAL((const SV *) (av))) \
+ ? mg_size(MUTABLE_SV(av)) : AvFILLp(av))
#define NEGATIVE_INDICES_VAR "NEGATIVE_INDICES"