Fix spurious gcc warnings
../../src/hb-null.hh:53:39: warning: enum constant in boolean context [-Wint-in-bool-context]
This commit is contained in:
parent
b96ecb9971
commit
eeed802b1d
@ -50,7 +50,7 @@ template <typename T, typename B>
|
|||||||
struct _hb_null_size
|
struct _hb_null_size
|
||||||
{ enum { value = sizeof (T) }; };
|
{ enum { value = sizeof (T) }; };
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct _hb_null_size<T, _hb_bool_type<(bool) T::min_size> >
|
struct _hb_null_size<T, _hb_bool_type<(bool) (int) T::min_size> >
|
||||||
{ enum { value = T::null_size }; };
|
{ enum { value = T::null_size }; };
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
Loading…
Reference in New Issue
Block a user