diff options
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r-- | fitz/res_font.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c index 966cbc6e..25939d02 100644 --- a/fitz/res_font.c +++ b/fitz/res_font.c @@ -356,8 +356,8 @@ fz_copy_ft_bitmap(fz_context *ctx, int left, int top, FT_Bitmap *bitmap) { for (y = 0; y < pixmap->h; y++) { - unsigned char *out = pixmap->samples + y * pixmap->w; - unsigned char *in = bitmap->buffer + (pixmap->h - y - 1) * bitmap->pitch; + unsigned char *out = pixmap->samples + (unsigned int)(y * pixmap->w); + unsigned char *in = bitmap->buffer + (unsigned int)((pixmap->h - y - 1) * bitmap->pitch); unsigned char bit = 0x80; int w = pixmap->w; while (w--) @@ -376,8 +376,8 @@ fz_copy_ft_bitmap(fz_context *ctx, int left, int top, FT_Bitmap *bitmap) { for (y = 0; y < pixmap->h; y++) { - memcpy(pixmap->samples + y * pixmap->w, - bitmap->buffer + (pixmap->h - y - 1) * bitmap->pitch, + memcpy(pixmap->samples + (unsigned int)(y * pixmap->w), + bitmap->buffer + (unsigned int)((pixmap->h - y - 1) * bitmap->pitch), pixmap->w); } } |