mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
[map] More minor
This commit is contained in:
1 parent
f76c4a7708
commit
a9fa39dca5
1 file changed
+6
-4
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user