From 51d5bf4ca2ebb9b8aa3b2777781e328fb93ceea7 Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Tue, 2 Oct 2018 14:38:06 -0700 Subject: [PATCH] silence warnings --- src/hb-cff-interp-cs-common.hh | 2 +- src/hb-subset-cff1.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-cff-interp-cs-common.hh b/src/hb-cff-interp-cs-common.hh index ab9aa0028..72f4061fb 100644 --- a/src/hb-cff-interp-cs-common.hh +++ b/src/hb-cff-interp-cs-common.hh @@ -105,7 +105,7 @@ struct CSInterpEnv : InterpEnv !SUPER::argStack.check_pop_int (n)))) return false; n += biasedSubrs.bias; - if (unlikely ((n < 0) || (n >= biasedSubrs.subrs->count))) + if (unlikely ((n < 0) || ((unsigned int)n >= biasedSubrs.subrs->count))) return false; subr_num = (unsigned int)n; diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc index ce3a7e3f0..8a75b8a93 100644 --- a/src/hb-subset-cff1.cc +++ b/src/hb-subset-cff1.cc @@ -351,8 +351,8 @@ struct cff_subset_plan { : final_size (0), orig_fdcount (0), subset_fdcount (1), - subset_fdselect_format (0), offsets (), + subset_fdselect_format (0), drop_hints (false) { topdict_sizes.init ();