From f47a60a7543dbaf41086c25a1a22ae518d8b92a9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 22 Nov 2018 17:53:29 -0500 Subject: [PATCH] Mark UnsizedArrayOf<> as UNBOUNDED Since min_size is 0, Null() still accepts this type. --- src/hb-open-type.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 4116966..0ecd3c6 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -317,6 +317,7 @@ struct OffsetTo : Offset DEFINE_SIZE_STATIC (sizeof (OffsetType)); }; template struct LOffsetTo : OffsetTo {}; + template static inline const Type& operator + (const Base &base, const OffsetTo &offset) { return offset (base); } template @@ -401,7 +402,7 @@ struct UnsizedArrayOf public: Type arrayZ[VAR]; public: - DEFINE_SIZE_ARRAY (0, arrayZ); + DEFINE_SIZE_UNBOUNDED (0); }; /* Unsized array of offset's */ -- 2.7.4