From b96ecb9971a9ad089a631d0139f05ae9d880fc55 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 22 Nov 2018 01:49:12 -0500 Subject: [PATCH] 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... --- src/hb-blob.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-blob.hh b/src/hb-blob.hh index 802b1f07e..4f9d8f040 100644 --- a/src/hb-blob.hh +++ b/src/hb-blob.hh @@ -60,7 +60,7 @@ struct hb_blob_t template inline const Type* as (void) const { - return length < Type::min_size ? &Null(Type) : reinterpret_cast (data); + return length < hb_null_size::value ? &Null(Type) : reinterpret_cast (data); } inline hb_bytes_t as_bytes (void) const {