[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Sun Sep 16 15:57:31 UTC 2018


 src/hb-open-type.hh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ebd50b3c83a22a0fdba53271275b8619a23739aa
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sun Sep 16 17:57:12 2018 +0200

    Fix static_assert

diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh
index beded06c..ae7cdfaf 100644
--- a/src/hb-open-type.hh
+++ b/src/hb-open-type.hh
@@ -226,13 +226,13 @@ struct FixedVersion
  * Use: (base+offset)
  */
 
-template <typename Type, bool has_null_> struct assert_has_min_size { static_assert (Type::min_size > 0); };
+template <typename Type, bool has_null_> struct assert_has_min_size { static_assert (Type::min_size > 0, ""); };
 template <typename Type> struct assert_has_min_size<Type, false> {};
 
 template <typename Type, typename OffsetType=HBUINT16, bool has_null=true>
 struct OffsetTo : Offset<OffsetType, has_null>
 {
-  static_assert (sizeof (assert_has_min_size<Type, has_null>) || true);
+  static_assert (sizeof (assert_has_min_size<Type, has_null>) || true, "");
 
   inline const Type& operator () (const void *base) const
   {


More information about the HarfBuzz mailing list