[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Nov 20 16:16:55 UTC 2018


 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(-)

New commits:
commit be1828daaa1e1a72d971aed8d34fff54688d0f41
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Nov 20 11:16:23 2018 -0500

    [var] Fix type of coords returned
    
    Ouch.  Wonder how none of the bots caught the float->int truncation.

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 */);
 
 
 /*


More information about the HarfBuzz mailing list