VarC: cast ints (#3934)
msvc is rightfully complaining that the types on the sides of the ternary are not matching: ``` C:\pango\subprojects\harfbuzz\src\OT\glyf\VarCompositeGlyph.hh(317): error C2446: ':': no conversion from 'const OT::HBUINT16' to 'const OT::HBUINT8' ```
This commit is contained in:
parent
300d82ce2e
commit
79285a9983
|
@ -314,7 +314,7 @@ struct VarCompositeGlyphRecord
|
|||
unsigned count = numAxes;
|
||||
for (unsigned i = 0; i < count; i++)
|
||||
{
|
||||
unsigned axis_index = axis_width == 1 ? *p++ : *q++;
|
||||
unsigned axis_index = axis_width == 1 ? (unsigned) *p++ : (unsigned) *q++;
|
||||
|
||||
signed v = have_variations ? rec_points[i].x : *a++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue