[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 authored and Behdad Esfahbod committed 2023-03-02 14:13:17 -07:00
1 parent 43dbdd9db6
commit e471ef77f9
1 file changed
+1 -1
+1 -1
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);