From: Behdad Esfahbod Date: Sat, 11 May 2019 03:31:20 +0000 (-0700) Subject: Minor X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=707ff5b59d3903b60312a028f2ba5d74c18db101;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Minor --- diff --git a/src/hb-meta.hh b/src/hb-meta.hh index 7b4d026..71698f9 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -292,10 +292,5 @@ template <> struct hb_int_max { static constexpr signed long template <> struct hb_int_max { static constexpr unsigned long long value = ULLONG_MAX; }; #define hb_int_max(T) hb_int_max::value -template struct hb_signedness_int; -template <> struct hb_signedness_int { typedef unsigned int value; }; -template <> struct hb_signedness_int { typedef signed int value; }; -#define hb_signedness_int(T) hb_signedness_int::value - #endif /* HB_META_HH */ diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index a7e10ed..9e17b5c 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -57,7 +57,7 @@ template struct IntType { typedef Type type; - typedef typename hb_signedness_int (hb_is_signed (Type)) wide_type; + typedef hb_conditional wide_type; IntType& operator = (wide_type i) { v = i; return *this; } operator wide_type () const { return v; }