[open-type] Another tweak to cmp()

Again, unlikely that compiler cares.
This commit is contained in:
Behdad Esfahbod 2025-02-02 11:40:27 +00:00
parent c68df817a6
commit f5e50890d0

View file

@ -91,7 +91,7 @@ struct IntType
int cmp (Type2 a) const
{
Type b = v;
return a < b ? -1 : a == b ? 0 : +1;
return (a > b) - (a < b);
}
bool sanitize (hb_sanitize_context_t *c) const
{