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>]
This commit is contained in:
Behdad Esfahbod 2018-11-30 15:55:30 -05:00
parent 9c6921c08c
commit d39760cabf
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ struct KernSubTableFormat3
if (unlikely (leftC >= leftClassCount || rightC >= rightClassCount)) if (unlikely (leftC >= leftClassCount || rightC >= rightClassCount))
return 0; return 0;
unsigned int i = leftC * rightClassCount + rightC; 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 inline bool apply (AAT::hb_aat_apply_context_t *c) const