[instancer] fix a runtime error

runtime error: -1 is outside the range of representable values of type 'unsigned int'
This commit is contained in:
Qunxin Liu 2023-03-02 12:40:16 -08:00 committed by Behdad Esfahbod
parent 43dbdd9db6
commit e471ef77f9
1 changed files with 1 additions and 1 deletions

View File

@ -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);