From df1c7d5b60520d2b3c756b700d5ac41668fc0983 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 25 Feb 2018 19:06:25 -0800 Subject: [PATCH] Minor --- src/hb-open-type-private.hh | 5 +++-- src/hb-subset.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index e4657887..5d33199e 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -740,8 +740,6 @@ template struct Offset : Type { inline bool is_null (void) const { return 0 == *this; } - public: - DEFINE_SIZE_STATIC (sizeof(Type)); inline void *serialize (hb_serialize_context_t *c, const void *base) { @@ -749,6 +747,9 @@ struct Offset : Type this->set ((char *) t - (char *) base); /* TODO(serialize) Overflow? */ return t; } + + public: + DEFINE_SIZE_STATIC (sizeof(Type)); }; typedef Offset Offset16; diff --git a/src/hb-subset.cc b/src/hb-subset.cc index 12cdb1d2..77ce8c97 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -136,7 +136,7 @@ _hb_subset_face_data_destroy (void *user_data) { hb_subset_face_data_t *data = (hb_subset_face_data_t *) user_data; - for (int i = 0; i < data->tables.len; i++) + for (unsigned int i = 0; i < data->tables.len; i++) hb_blob_destroy (data->tables[i].blob); data->tables.finish (); -- GitLab