From 37de2d533126245774417234e3536fcfb24f3a6b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 Feb 2015 16:55:51 +0300 Subject: [PATCH] Minor simplify IntType --- src/hb-open-type-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 197495e74..cc661c0c4 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -620,7 +620,7 @@ struct IntType inline bool operator == (const IntType &o) const { return v == o.v; } inline bool operator != (const IntType &o) const { return v != o.v; } static inline int cmp (const IntType *a, const IntType *b) { return b->cmp (*a); } - inline int cmp (IntType va) const { Type a = va; Type b = v; return a < b ? -1 : a == b ? 0 : +1; } + inline int cmp (IntType va) const { Type a = va; return cmp (va); } inline int cmp (Type a) const { Type b = v; return a < b ? -1 : a == b ? 0 : +1; } inline bool sanitize (hb_sanitize_context_t *c) const {