summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-05-24 17:13:34 +0000
committerNicholas Clark <nick@ccl4.org>2005-05-24 17:13:34 +0000
commit199f3245d0efbd4bc138ab358c5f5889c79d7083 (patch)
tree0114ad72ddd80bc2a7adeac01a31537fcbe8040b /hv.h
parent008fb49c17496ad9d8e3abe1ff0dc992e9aa5beb (diff)
downloadperl-199f3245d0efbd4bc138ab358c5f5889c79d7083.tar.gz
Reorder the union to cause Win32 compilers to use void * alignment for
it. p4raw-id: //depot/perl@24569
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.h b/hv.h
index 0d1f975ab1..ddbdd80b06 100644
--- a/hv.h
+++ b/hv.h
@@ -46,7 +46,6 @@ struct xpvhv {
STRLEN xhv_fill; /* how full xhv_array currently is */
STRLEN xhv_max; /* subscript of last element of xhv_array */
union {
- NV xnvu_nv; /* numeric value, if any */
struct {
void *xnv_p1;
union {
@@ -54,6 +53,7 @@ struct xpvhv {
IV xnv_i2; /* how many elements in the array */
} xnv_u2;
} xnv_s;
+ NV xnvu_nv; /* numeric value, if any */
} xnv_u;
MAGIC* xmg_magic; /* magic for scalar array */
HV* xmg_stash; /* class package */