diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index 2855425a7..9ff5ca975 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -78,6 +78,9 @@ template struct RecordArrayOf : SortedArrayOf > { inline const Tag& get_tag (unsigned int i) const { + /* We cheat slightly and don't define separate Null objects + * for Record types. Instead, we return the correct Null(Tag) + * here. */ if (unlikely (i >= this->len)) return Null(Tag); return (*this)[i].tag; }