summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--av.h6
-rw-r--r--sv.c2
-rw-r--r--sv.h1
3 files changed, 3 insertions, 6 deletions
diff --git a/av.h b/av.h
index f9af3ce616..5231c4d4ce 100644
--- a/av.h
+++ b/av.h
@@ -13,11 +13,9 @@ struct xpvav {
union _xmgu xmg_u;
SSize_t xav_fill; /* Index of last element present */
SSize_t xav_max; /* max index for which array has space */
- union _xivu xiv_u;
+ SV** xav_alloc; /* pointer to beginning of C array of SVs */
};
-/* SV** xav_alloc; */
-#define xav_alloc xiv_u.xivu_p1
/* SV* xav_arylen; */
/* SVpav_REAL is set for all AVs whose xav_array contents are refcounted.
@@ -59,7 +57,7 @@ Same as C<av_len()>. Deprecated, use C<av_len()> instead.
#endif
#define AvARRAY(av) ((av)->sv_u.svu_array)
-#define AvALLOC(av) (*((SV***)&((XPVAV*) SvANY(av))->xav_alloc))
+#define AvALLOC(av) ((XPVAV*) SvANY(av))->xav_alloc
#define AvMAX(av) ((XPVAV*) SvANY(av))->xav_max
#define AvFILLp(av) ((XPVAV*) SvANY(av))->xav_fill
#define AvARYLEN(av) (*Perl_av_arylen_p(aTHX_ MUTABLE_AV(av)))
diff --git a/sv.c b/sv.c
index 3b332f267e..fe3f36253c 100644
--- a/sv.c
+++ b/sv.c
@@ -976,7 +976,7 @@ static const struct body_details bodies_by_type[] = {
HASARENA, FIT_ARENA(0, sizeof(XPVLV)) },
{ sizeof(XPVAV),
- copy_length(XPVAV, xiv_u),
+ copy_length(XPVAV, xav_alloc),
0,
SVt_PVAV, TRUE, NONV, HASARENA,
FIT_ARENA(0, sizeof(XPVAV)) },
diff --git a/sv.h b/sv.h
index f88f139a0e..7793e29d96 100644
--- a/sv.h
+++ b/sv.h
@@ -418,7 +418,6 @@ union _xivu {
IV xivu_iv; /* integer value */
/* xpvfm: lines */
UV xivu_uv;
- void * xivu_p1;
I32 xivu_i32;
HEK * xivu_namehek; /* xpvlv, xpvgv: GvNAME */
HV * xivu_hv; /* regexp: paren_names */