Eliminate xhv_fill from struct xpvhv.
authorNicholas Clark <nick@ccl4.org>
Sun, 24 Jan 2010 15:39:53 +0000 (15:39 +0000)
committerNicholas Clark <nick@ccl4.org>
Fri, 21 May 2010 17:56:25 +0000 (18:56 +0100)
hv.h
sv.c

diff --git a/hv.h b/hv.h
index 0303b9f..468c072 100644 (file)
--- a/hv.h
+++ b/hv.h
@@ -85,9 +85,8 @@ struct xpvhv_aux {
 struct xpvhv {
     HV*                xmg_stash;      /* class package */
     union _xmgu        xmg_u;
-    STRLEN      xhv_fill;       /* how full xhv_array currently is */
+    STRLEN      xhv_keys;       /* total keys, including placeholders */
     STRLEN      xhv_max;        /* subscript of last element of xhv_array */
-    STRLEN     xhv_keys;       /* total keys, including placeholders */
 };
 
 /* hash a key */
diff --git a/sv.c b/sv.c
index eff293f..7f4b1c6 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -982,7 +982,7 @@ static const struct body_details bodies_by_type[] = {
       FIT_ARENA(0, sizeof(XPVAV)) },
 
     { sizeof(XPVHV),
-      copy_length(XPVHV, xhv_keys),
+      copy_length(XPVHV, xhv_max),
       0,
       SVt_PVHV, TRUE, NONV, HASARENA,
       FIT_ARENA(0, sizeof(XPVHV)) },