From be1828daaa1e1a72d971aed8d34fff54688d0f41 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 20 Nov 2018 11:16:23 -0500 Subject: [PATCH] [var] Fix type of coords returned Ouch. Wonder how none of the bots caught the float->int truncation. --- src/hb-ot-var-fvar-table.hh | 2 +- src/hb-ot-var.cc | 2 +- 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 f61296d1b..47c2516f3 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 bb8d26490..9ad2f861e 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 e0ac5c4a2..79ce7d72b 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 */); /*