diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-11-20 11:16:23 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-11-20 11:16:23 -0500 |
commit | be1828daaa1e1a72d971aed8d34fff54688d0f41 (patch) | |
tree | 18dd40cf74141d7f4c5ad57367cfe9fe81d33670 | |
parent | 8f3ee17ae468950a34439785d2e6ac4182efb65c (diff) |
[var] Fix type of coords returned
Ouch. Wonder how none of the bots caught the float->int truncation.
-rw-r--r-- | src/hb-ot-var-fvar-table.hh | 2 | ||||
-rw-r--r-- | src/hb-ot-var.cc | 2 | ||||
-rw-r--r-- | src/hb-ot-var.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/hb-ot-var-fvar-table.hh b/src/hb-ot-var-fvar-table.hh index f61296d1..47c2516f 100644 --- a/src/hb-ot-var-fvar-table.hh +++ b/src/hb-ot-var-fvar-table.hh @@ -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)) { diff --git a/src/hb-ot-var.cc b/src/hb-ot-var.cc index bb8d2649..9ad2f861 100644 --- a/src/hb-ot-var.cc +++ b/src/hb-ot-var.cc @@ -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); } diff --git a/src/hb-ot-var.h b/src/hb-ot-var.h index e0ac5c4a..79ce7d72 100644 --- a/src/hb-ot-var.h +++ b/src/hb-ot-var.h @@ -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 */); /* |