From f45ac6296add6435ea5a902f7519187414aa8092 Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Tue, 11 Sep 2018 22:41:50 -0700 Subject: [PATCH] fixed name mixup in Remap::reset it was causing inconsistent Strings Index subset results --- src/hb-ot-cff-common.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index 28728a9d7..87ca69d69 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -356,9 +356,9 @@ struct Remap : hb_vector_t inline void fini (void) { hb_vector_t::fini (); } - inline bool reset (unsigned int count) + inline bool reset (unsigned int size) { - if (unlikely (!hb_vector_t::resize (count))) + if (unlikely (!hb_vector_t::resize (size))) return false; for (unsigned int i = 0; i < len; i++) (*this)[i] = CFF_UNDEF_CODE;