From e00c37aaae3922b425c0528bfdd36d59cf9c5796 Mon Sep 17 00:00:00 2001 From: Rod Sheeter Date: Thu, 15 Feb 2018 12:53:52 -0800 Subject: [PATCH] [subset] fix no matching function MIN in djgpp --- src/hb-ot-hmtx-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-hmtx-table.hh b/src/hb-ot-hmtx-table.hh index 5a291491a..a3bd19c86 100644 --- a/src/hb-ot-hmtx-table.hh +++ b/src/hb-ot-hmtx-table.hh @@ -121,7 +121,7 @@ struct hmtxvmtx for (unsigned int i = 0; i < gids.len; i++) { /* the last metric or the one for gids[i] */ - LongMetric *src_metric = old_metrics + MIN (_mtx.num_advances - 1, gids[i]); + LongMetric *src_metric = old_metrics + MIN ((hb_codepoint_t) _mtx.num_advances - 1, gids[i]); if (gids[i] < _mtx.num_advances) { /* src is a LongMetric */