[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Fri Nov 30 20:56:20 UTC 2018


 src/hb-ot-kern-table.hh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d39760cabfe4007cefdfc45231e85e93fababac2
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Fri Nov 30 15:55:30 2018 -0500

    One more...
    
    Sigh.
    
    hb-ot-kern-table.hh: In member function 'int OT::KernSubTableFormat3<KernSubTableHeader>::get_kerning(hb_codepoint_t, hb_codepoint_t) const':
    hb-ot-kern-table.hh:59: error: ambiguous overload for 'operator[]' in 'kernValue[kernIndex[i]]'
    hb-ot-kern-table.hh:59: note: candidates are: operator[](T*, int) <built-in>
    hb-dsalgs.hh:574: note:                 Type& hb_array_t<Type>::operator[](unsigned int) const [with Type = const OT::IntType<short int, 2u>]

diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh
index e1348b70..a184f2e1 100644
--- a/src/hb-ot-kern-table.hh
+++ b/src/hb-ot-kern-table.hh
@@ -56,7 +56,7 @@ struct KernSubTableFormat3
     if (unlikely (leftC >= leftClassCount || rightC >= rightClassCount))
       return 0;
     unsigned int i = leftC * rightClassCount + rightC;
-    return kernValue[kernIndex[i]];
+    return kernValue[(unsigned) kernIndex[i]];
   }
 
   inline bool apply (AAT::hb_aat_apply_context_t *c) const


More information about the HarfBuzz mailing list