Fix overflow in space fallback shaping

Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=657466
This commit is contained in:
Behdad Esfahbod 2018-02-08 17:22:07 -06:00
parent b220b5a444
commit c1ab95dd90
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ _hb_ot_shape_fallback_spaces (const hb_ot_shape_plan_t *plan,
break;
case t::SPACE_4_EM_18:
pos[i].x_advance = font->x_scale * 4 / 18;
pos[i].x_advance = (int64_t) font->x_scale * 4 / 18;
break;
case t::SPACE_FIGURE: