[hdmx] Adjust to hb_iota() behavior change

Use hb_range() instead.
This commit is contained in:
Behdad Esfahbod 2019-05-09 12:14:36 -07:00
parent 4f2ad75a83
commit 00195a22ce
1 changed files with 2 additions and 2 deletions

View File

@ -125,14 +125,14 @@ struct hdmx
if (unlikely (!hdmx_prime)) return_trace (false); if (unlikely (!hdmx_prime)) return_trace (false);
auto it = auto it =
+ hb_iota ((unsigned) numRecords) + hb_range ((unsigned) numRecords)
| hb_map ([&] (unsigned _) | hb_map ([&] (unsigned _)
{ {
const DeviceRecord *device_record = const DeviceRecord *device_record =
&StructAtOffset<DeviceRecord> (&firstDeviceRecord, &StructAtOffset<DeviceRecord> (&firstDeviceRecord,
_ * sizeDeviceRecord); _ * sizeDeviceRecord);
auto row = auto row =
+ hb_iota (c->plan->num_output_glyphs ()) + hb_range (c->plan->num_output_glyphs ())
| hb_map (c->plan->reverse_glyph_map) | hb_map (c->plan->reverse_glyph_map)
| hb_map ([=] (hb_codepoint_t _) | hb_map ([=] (hb_codepoint_t _)
{ {