Further cleanup of sizeof
diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh
index 45ed801..c6c9811 100644
--- a/src/hb-open-type-private.hh
+++ b/src/hb-open-type-private.hh
@@ -120,7 +120,7 @@
/* Generic template for nul-content sizeof-sized Null objects. */
template <typename Type>
static inline const Type& Null () {
- ASSERT_STATIC (sizeof (Type) <= sizeof (_NullPool));
+ ASSERT_STATIC (Type::min_size <= sizeof (_NullPool));
return *CastP<Type> (_NullPool);
}
@@ -673,7 +673,10 @@
}
USHORT len;
-/*Type array[VAR];*/
+ private:
+ Type arrayX[VAR];
+ public:
+ DEFINE_SIZE_VAR (sizeof (USHORT), Type);
};