Skip to content

Commit

Permalink
[instancer] fix a runtime error
Browse files Browse the repository at this point in the history
runtime error: -1 is outside the range of representable values of type 'unsigned int'
  • Loading branch information
qxliu76 authored and behdad committed Mar 2, 2023
1 parent 43dbdd9 commit e471ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hb-ot-var-cvar-table.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e471ef7

Please sign in to comment.