diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index 5db8f67a7..e3adfe81e 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -57,8 +57,7 @@ template struct Record { inline int cmp (hb_tag_t a) const { - hb_tag_t b = tag; - return a < b ? -1 : a == b ? 0 : +1; + return tag.cmp (a); } inline bool sanitize (hb_sanitize_context_t *c, void *base) {