[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Nov 22 06:50:35 UTC 2018


 src/hb-blob.hh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b96ecb9971a9ad089a631d0139f05ae9d880fc55
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Nov 22 01:49:12 2018 -0500

    More
    
    This makes more of the gcc spurious warning:
    
    ../../src/hb-null.hh:53:39: warning: enum constant in boolean context [-Wint-in-bool-context]
    
    But not going to let that defeat correct code.  Type to switch to clang
    as my main compiler...

diff --git a/src/hb-blob.hh b/src/hb-blob.hh
index 802b1f07..4f9d8f04 100644
--- a/src/hb-blob.hh
+++ b/src/hb-blob.hh
@@ -60,7 +60,7 @@ struct hb_blob_t
   template <typename Type>
   inline const Type* as (void) const
   {
-    return length < Type::min_size ? &Null(Type) : reinterpret_cast<const Type *> (data);
+    return length < hb_null_size<Type>::value ? &Null(Type) : reinterpret_cast<const Type *> (data);
   }
   inline hb_bytes_t as_bytes (void) const
   {


More information about the HarfBuzz mailing list