From 95b9763dbc011e5aa32b8a9faf2146aa552d6eef Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 16 Nov 2022 14:15:01 -0700 Subject: [PATCH] [set-digest] Minor simplify --- src/hb-set-digest.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/hb-set-digest.hh b/src/hb-set-digest.hh index fab36216e..442958337 100644 --- a/src/hb-set-digest.hh +++ b/src/hb-set-digest.hh @@ -103,11 +103,7 @@ struct hb_set_digest_bits_pattern_t template bool add_sorted_array (const T *array, unsigned int count, unsigned int stride=sizeof(T)) { - for (unsigned int i = 0; i < count; i++) - { - add (*array); - array = (const T *) (stride + (const char *) array); - } + add_array (array, count, stride); return true; } template