From d9867497d09af929554eaa89cc6fee865b018646 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 24 Sep 2018 18:11:59 -0400 Subject: [PATCH] Minor --- src/hb-ot-shape.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 6bfd2c7a0..5404a5c3a 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -125,7 +125,8 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner, { const hb_feature_t *feature = &user_features[i]; map->add_feature (feature->tag, - (feature->start == 0 && feature->end == (unsigned int) -1) ? F_GLOBAL : F_NONE, + (feature->start == HB_FEATURE_GLOBAL_START && + feature->end == HB_FEATURE_GLOBAL_END) ? F_GLOBAL : F_NONE, feature->value); } }