diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 99634b76f..8c4271b68 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -80,14 +80,21 @@ struct IntType return pb->cmp (*pa); } - template + template int cmp (Type2 a) const { Type b = v; - if (sizeof (Type) < sizeof (int) && sizeof (Type2) < sizeof (int)) - return (int) a - (int) b; - else - return a < b ? -1 : a == b ? 0 : +1; + return (int) a - (int) b; + } + template + int cmp (Type2 a) const + { + Type b = v; + return a < b ? -1 : a == b ? 0 : +1; } bool sanitize (hb_sanitize_context_t *c) const {