[var] Fix type of coords returned

Ouch.  Wonder how none of the bots caught the float->int truncation.
This commit is contained in:
Behdad Esfahbod 2018-11-20 11:16:23 -05:00
parent 8f3ee17ae4
commit be1828daaa
3 changed files with 3 additions and 3 deletions

View File

@ -210,7 +210,7 @@ struct fvar
inline unsigned int get_instance_coords (unsigned int index,
unsigned int *coords_length, /* IN/OUT */
int *coords /* OUT */) const
float *coords /* OUT */) const
{
if (unlikely (index >= instanceCount))
{

View File

@ -144,7 +144,7 @@ unsigned int
hb_ot_var_named_instance_get_design_coords (hb_face_t *face,
unsigned int instance_index,
unsigned int *coords_length, /* IN/OUT */
int *coords /* OUT */)
float *coords /* OUT */)
{
return face->table.fvar->get_instance_coords (instance_index, coords_length, coords);
}

View File

@ -124,7 +124,7 @@ HB_EXTERN unsigned int
hb_ot_var_named_instance_get_design_coords (hb_face_t *face,
unsigned int instance_index,
unsigned int *coords_length, /* IN/OUT */
int *coords /* OUT */);
float *coords /* OUT */);
/*