From 3922aae1620958768d3257c0988432d5609dca1b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 24 Nov 2018 11:02:04 -0500 Subject: [PATCH] [aat.feat] Minor --- src/hb-aat-layout-feat-table.hh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/hb-aat-layout-feat-table.hh b/src/hb-aat-layout-feat-table.hh index 155b6c85f..98d628693 100644 --- a/src/hb-aat-layout-feat-table.hh +++ b/src/hb-aat-layout-feat-table.hh @@ -40,11 +40,7 @@ namespace AAT { struct SettingName { int cmp (hb_aat_layout_feature_selector_t key) const - { - return key < setting ? -1 : - key > setting ? +1 : - 0; - } + { return (int) key - (int) setting; } inline hb_aat_layout_feature_selector_t get_selector () const { return (hb_aat_layout_feature_selector_t) (unsigned int) setting; } @@ -70,11 +66,7 @@ struct feat; struct FeatureName { int cmp (hb_aat_layout_feature_type_t key) const - { - return key < feature ? -1 : - key > feature ? +1 : - 0; - } + { return (int) key - (int) feature; } enum { Exclusive = 0x8000, /* If set, the feature settings are mutually exclusive. */