diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 0b439fd2a..099fd5bea 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -649,7 +649,7 @@ struct { return hb_range_iter_t (0, end, 1u); } template hb_range_iter_t - operator () (T start, T end, S&& step = 1u) const + operator () (T start, T end, S step = 1u) const { return hb_range_iter_t (start, end, step); } } HB_FUNCOBJ (hb_range); @@ -682,7 +682,7 @@ struct hb_iota_iter_t : struct { template hb_iota_iter_t - operator () (T start = 0u, S&& step = 1u) const + operator () (T start = 0u, S step = 1u) const { return hb_iota_iter_t (start, step); } } HB_FUNCOBJ (hb_iota);