[hdmx] Adjust to hb_iota() behavior change
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 9 May 2019 19:14:36 +0000 (12:14 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 9 May 2019 19:14:36 +0000 (12:14 -0700)
Use hb_range() instead.

src/hb-ot-hdmx-table.hh

index 35d27f7..dc36d0a 100644 (file)
@@ -125,14 +125,14 @@ struct hdmx
     if (unlikely (!hdmx_prime)) return_trace (false);
 
     auto it =
-    + hb_iota ((unsigned) numRecords)
+    + hb_range ((unsigned) numRecords)
     | hb_map ([&] (unsigned _)
        {
          const DeviceRecord *device_record =
            &StructAtOffset<DeviceRecord> (&firstDeviceRecord,
                                           _ * sizeDeviceRecord);
          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 ([=] (hb_codepoint_t _)
                      {