提交 6f46883f 编写于 作者: B Behdad Esfahbod

[hdmx] Minor

上级 c5896819
...@@ -134,7 +134,7 @@ struct hdmx ...@@ -134,7 +134,7 @@ struct hdmx
inline const DeviceRecord& operator [] (unsigned int i) const inline const DeviceRecord& operator [] (unsigned int i) const
{ {
if (unlikely (i >= num_records)) return Null(DeviceRecord); 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) inline bool serialize (hb_serialize_context_t *c, const hdmx *source_hdmx, hb_subset_plan_t *plan)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册