Minor simplify IntType
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 19 Feb 2015 13:55:51 +0000 (16:55 +0300)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 25 Feb 2015 23:43:31 +0000 (15:43 -0800)
src/hb-open-type-private.hh

index 197495e..cc661c0 100644 (file)
@@ -620,7 +620,7 @@ struct IntType
   inline bool operator == (const IntType<Type,Size> &o) const { return v == o.v; }
   inline bool operator != (const IntType<Type,Size> &o) const { return v != o.v; }
   static inline int cmp (const IntType<Type,Size> *a, const IntType<Type,Size> *b) { return b->cmp (*a); }
-  inline int cmp (IntType<Type,Size> va) const { Type a = va; Type b = v; return a < b ? -1 : a == b ? 0 : +1; }
+  inline int cmp (IntType<Type,Size> 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
   {