Skip to content

Commit

Permalink
Remove union _xivu from struct xpvhv - replace it with a non-union xa…
Browse files Browse the repository at this point in the history
…v_keys.
  • Loading branch information
nwc10 committed May 21, 2010
1 parent 4f7003f commit de0a224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions hv.h
Expand Up @@ -87,11 +87,9 @@ struct xpvhv {
union _xmgu xmg_u;
STRLEN xhv_fill; /* how full xhv_array currently is */
STRLEN xhv_max; /* subscript of last element of xhv_array */
union _xivu xiv_u;
STRLEN xhv_keys; /* total keys, including placeholders */
};

#define xhv_keys xiv_u.xivu_iv

/* hash a key */
/* FYI: This is the "One-at-a-Time" algorithm by Bob Jenkins
* from requirements by Colin Plumb.
Expand Down
2 changes: 1 addition & 1 deletion sv.c
Expand Up @@ -982,7 +982,7 @@ static const struct body_details bodies_by_type[] = {
FIT_ARENA(0, sizeof(XPVAV)) },

{ sizeof(XPVHV),
copy_length(XPVHV, xiv_u),
copy_length(XPVHV, xhv_keys),
0,
SVt_PVHV, TRUE, NONV, HASARENA,
FIT_ARENA(0, sizeof(XPVHV)) },
Expand Down

0 comments on commit de0a224

Please sign in to comment.