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. */