insert explict cast to FT_Fixed when bitshifting for FT_Fixed value.

note: long constant is too large for LP64 platforms.
int-not32-changes-2017
suzuki toshiya 7 years ago
parent 776ff19d64
commit 58dd3a1e6e
  1. 4
      src/truetype/ttgload.c

@ -771,8 +771,8 @@
/* completely refer to the (already) hinted subglyphs. */
if ( is_composite )
{
loader->exec->metrics.x_scale = 1 << 16;
loader->exec->metrics.y_scale = 1 << 16;
loader->exec->metrics.x_scale = (FT_Fixed)1 << 16;
loader->exec->metrics.y_scale = (FT_Fixed)1 << 16;
FT_ARRAY_COPY( zone->orus, zone->cur, zone->n_points );
}

Loading…
Cancel
Save