diff --git a/src/OT/glyf/VarCompositeGlyph.hh b/src/OT/glyf/VarCompositeGlyph.hh index e33cdf794..0f4c71c83 100644 --- a/src/OT/glyf/VarCompositeGlyph.hh +++ b/src/OT/glyf/VarCompositeGlyph.hh @@ -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++;