src/hb-null.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit eeed802b1d0f932c61a088d3e0156ae70645b9e2
Author: Behdad Esfahbod <[email protected]>
Date: Thu Nov 22 01:53:36 2018 -0500
Fix spurious gcc warnings
../../src/hb-null.hh:53:39: warning: enum constant in boolean context
[-Wint-in-bool-context]
diff --git a/src/hb-null.hh b/src/hb-null.hh
index 166d2089..b87775b6 100644
--- a/src/hb-null.hh
+++ b/src/hb-null.hh
@@ -50,7 +50,7 @@ template <typename T, typename B>
struct _hb_null_size
{ enum { value = sizeof (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 }; };
template <typename T>
_______________________________________________
HarfBuzz mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/harfbuzz