From 8d55e2adef9a376a5cf83c20aff2dba27dd64da8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 25 Oct 2018 16:37:53 -0700 Subject: [PATCH] [set] Minor --- src/hb-set.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-set.hh b/src/hb-set.hh index 7ba4c04da..4a7e74b66 100644 --- a/src/hb-set.hh +++ b/src/hb-set.hh @@ -368,8 +368,8 @@ struct hb_set_t if (!resize (count)) return; population = other->population; - memcpy (pages.arrayZ(), other->pages.arrayZ(), count * sizeof (pages.arrayZ()[0])); - memcpy (page_map.arrayZ(), other->page_map.arrayZ(), count * sizeof (page_map.arrayZ()[0])); + memcpy (pages.arrayZ(), other->pages.arrayZ(), count * sizeof (pages[0])); + memcpy (page_map.arrayZ(), other->page_map.arrayZ(), count * sizeof (page_map[0])); } inline bool is_equal (const hb_set_t *other) const