From: Nicholas Clark Date: Sun, 24 Jan 2010 15:39:53 +0000 (+0000) Subject: Eliminate xhv_fill from struct xpvhv. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=359164a0b0ca9d7142b89ef0b09c1d01437e4471;p=p5sagit%2Fp5-mst-13.2.git Eliminate xhv_fill from struct xpvhv. --- diff --git a/hv.h b/hv.h index 0303b9f..468c072 100644 --- 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 --- 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)) },