Use dagger in OffsetTable::get_table_tags (#2477)
This commit is contained in:
parent
dce4353f86
commit
25cf687443
|
@ -91,15 +91,10 @@ typedef struct OffsetTable
|
||||||
{
|
{
|
||||||
if (table_count)
|
if (table_count)
|
||||||
{
|
{
|
||||||
if (start_offset >= tables.len)
|
+ tables.sub_array (start_offset, table_count)
|
||||||
*table_count = 0;
|
| hb_map (&TableRecord::tag)
|
||||||
else
|
| hb_sink (hb_array (table_tags, *table_count))
|
||||||
*table_count = hb_min (*table_count, tables.len - start_offset);
|
;
|
||||||
|
|
||||||
const TableRecord *sub_tables = tables.arrayZ + start_offset;
|
|
||||||
unsigned int count = *table_count;
|
|
||||||
for (unsigned int i = 0; i < count; i++)
|
|
||||||
table_tags[i] = sub_tables[i].tag;
|
|
||||||
}
|
}
|
||||||
return tables.len;
|
return tables.len;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue