diff options
Diffstat (limited to 'fitz/res_halftone.c')
-rw-r--r-- | fitz/res_halftone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/res_halftone.c b/fitz/res_halftone.c index 3b5e0e51..f8bef236 100644 --- a/fitz/res_halftone.c +++ b/fitz/res_halftone.c @@ -99,7 +99,7 @@ static void make_ht_line(unsigned char *buf, fz_halftone *ht, int x, int y, int assert(tile->n == 1); /* Left hand section; from x to tile width */ - tbase = tile->samples + py * tw; + tbase = tile->samples + (unsigned int)(py * tw); t = tbase + px; len = tw - px; if (len > w2) |