src/hb-map-private.hh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
New commits: commit a9fa39dca56d3a96dddcdbeb1c55a3d55a6537da Author: Behdad Esfahbod <beh...@behdad.org> Date: Tue May 29 17:31:01 2018 -0700 [map] More minor diff --git a/src/hb-map-private.hh b/src/hb-map-private.hh index d0909b59..0db060c4 100644 --- a/src/hb-map-private.hh +++ b/src/hb-map-private.hh @@ -133,15 +133,17 @@ struct hb_map_t if (!items[i].is_unused ()) { occupancy--; - if (items[i].value != INVALID) + if (items[i].is_tombstone ()) population--; } - occupancy++; - if (value != INVALID) - population++; items[i].key = key; items[i].value = value; + + occupancy++; + if (!items[i].is_tombstone ()) + population++; + } inline hb_codepoint_t get (hb_codepoint_t key) const { _______________________________________________ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz