diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index 2e6554e73..5fcfae165 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -678,7 +678,7 @@ hb_ot_get_glyph_v_origins (hb_font_t *font, hb_position_t origin; unsigned cv; if (origin_cache->get (*first_glyph, &cv)) - origin = font->y_scale < 0 ? -cv : cv; + origin = font->y_scale < 0 ? -static_cast(cv) : static_cast(cv); else { origin = font->em_scalef_y (VORG.get_y_origin (*first_glyph)); @@ -702,7 +702,7 @@ hb_ot_get_glyph_v_origins (hb_font_t *font, hb_position_t origin; unsigned cv; if (origin_cache->get (*first_glyph, &cv)) - origin = font->y_scale < 0 ? -cv : cv; + origin = font->y_scale < 0 ? -static_cast(cv) : static_cast(cv); else { origin = font->em_scalef_y (VORG.get_y_origin (*first_glyph) + @@ -745,7 +745,7 @@ hb_ot_get_glyph_v_origins (hb_font_t *font, hb_position_t origin; unsigned cv; if (origin_cache->get (*first_glyph, &cv)) - origin = font->y_scale < 0 ? -cv : cv; + origin = font->y_scale < 0 ? -static_cast(cv) : static_cast(cv); else { origin = font->em_scalef_y (glyf.get_v_origin_with_var_unscaled (*first_glyph, font, *scratch, gvar_cache)); @@ -779,7 +779,7 @@ hb_ot_get_glyph_v_origins (hb_font_t *font, unsigned cv; if (origin_cache->get (*first_glyph, &cv)) - origin = font->y_scale < 0 ? -cv : cv; + origin = font->y_scale < 0 ? -static_cast(cv) : static_cast(cv); else { hb_glyph_extents_t extents = {0};