[subset] Fix ubsan failure.

This commit is contained in:
Garret Rieger 2023-04-18 18:49:26 +00:00 committed by Behdad Esfahbod
parent 647b024784
commit 19e1b698c5
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ struct Glyph
#endif
;
phantoms[PHANTOM_LEFT].x = h_delta;
phantoms[PHANTOM_RIGHT].x = h_adv + h_delta;
phantoms[PHANTOM_RIGHT].x = (int) h_adv + h_delta;
phantoms[PHANTOM_TOP].y = v_orig;
phantoms[PHANTOM_BOTTOM].y = v_orig - (int) v_adv;
}