[hdmx] Minor

This commit is contained in:
Behdad Esfahbod 2018-03-26 19:55:22 -07:00
parent c589681926
commit 6f46883f5b
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ struct hdmx
inline const DeviceRecord& operator [] (unsigned int i) const
{
if (unlikely (i >= num_records)) return Null(DeviceRecord);
return StructAtOffset<DeviceRecord> (this, min_size + i * size_device_record);
return StructAtOffset<DeviceRecord> (this->data, i * size_device_record);
}
inline bool serialize (hb_serialize_context_t *c, const hdmx *source_hdmx, hb_subset_plan_t *plan)