ghostscript/ghostscript-gxcht-64bit-crash.patch
2007-01-18 13:22:03 +00:00

12 lines
519 B
Diff

--- espgs-8.15.3/src/gxcht.c.gxcht-64bit-crash 2007-01-18 12:29:20.000000000 +0000
+++ espgs-8.15.3/src/gxcht.c 2007-01-18 12:29:36.000000000 +0000
@@ -1095,7 +1095,7 @@
ptc->xbits = ((tw - 1) & 7) + 1;
ptc->tdata = btile->data;
ptc->raster = btile->raster;
- ptc->row = ptc->tdata + by * ptc->raster;
+ ptc->row = ptc->tdata + by * (int)ptc->raster;
ptc->data = ptc->row + ptc->xoffset;
ptc->bit_shift = ptc->xshift;
if_debug6('h', "[h]plane %d: size=%d,%d shift=%d bx=%d by=%d\n",