[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Wed May 30 00:31:19 UTC 2018
src/hb-map-private.hh | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
New commits:
commit a9fa39dca56d3a96dddcdbeb1c55a3d55a6537da
Author: Behdad Esfahbod <behdad at 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
{
More information about the HarfBuzz
mailing list