src/hb-map-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b3d45de6cff4501e6171ec9d9069af7de29584d4 Author: Behdad Esfahbod <[email protected]> Date: Wed May 30 14:02:49 2018 -0700 [map] Fix size calculation Don't know why I thought I should subtract one there... diff --git a/src/hb-map-private.hh b/src/hb-map-private.hh index ef2ee466..cdd90c5c 100644 --- a/src/hb-map-private.hh +++ b/src/hb-map-private.hh @@ -90,7 +90,7 @@ struct hb_map_t { if (unlikely (in_error)) return false; - unsigned int power = _hb_bit_storage (population * 2 + 8) - 1; + unsigned int power = _hb_bit_storage (population * 2 + 8); unsigned int new_size = 1u << power; item_t *new_items = (item_t *) malloc ((size_t) new_size * sizeof (item_t)); if (unlikely (!new_items)) _______________________________________________ HarfBuzz mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/harfbuzz
