diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index a3ef1ad06..c88f43385 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -56,7 +56,9 @@ struct loca protected: UnsizedArrayOf dataZ; /* Location data. */ public: - DEFINE_SIZE_UNBOUNDED (0); + DEFINE_SIZE_MIN (0); /* In reality, this is UNBOUNDED() type; but since we always + * check the size externally, allow Null() object of it by + * defining it MIN() instead. */ }; @@ -465,7 +467,9 @@ struct glyf protected: UnsizedArrayOf dataZ; /* Glyphs data. */ public: - DEFINE_SIZE_UNBOUNDED (0); + DEFINE_SIZE_MIN (0); /* In reality, this is UNBOUNDED() type; but since we always + * check the size externally, allow Null() object of it by + * defining it MIN() instead. */ }; struct glyf_accelerator_t : glyf::accelerator_t {};