From e471ef77f93eeafff2701a31e6c042054ea4f7e1 Mon Sep 17 00:00:00 2001 From: Qunxin Liu Date: Thu, 2 Mar 2023 12:40:16 -0800 Subject: [PATCH] [instancer] fix a runtime error runtime error: -1 is outside the range of representable values of type 'unsigned int' --- src/hb-ot-var-cvar-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-var-cvar-table.hh b/src/hb-ot-var-cvar-table.hh index 66fda8db1..bdb2b6b23 100644 --- a/src/hb-ot-var-cvar-table.hh +++ b/src/hb-ot-var-cvar-table.hh @@ -137,7 +137,7 @@ struct cvar FWORD *cvt_prime = (FWORD *) hb_blob_get_data_writable (cvt_prime_blob, nullptr); for (unsigned i = 0; i < num_cvt_item; i++) - cvt_prime[i] += roundf (cvt_deltas[i]); + cvt_prime[i] += (int) roundf (cvt_deltas[i]); bool success = plan->add_table (cvt, cvt_prime_blob); hb_blob_destroy (cvt_prime_blob);