diff options
Diffstat (limited to 'fitzdraw')
-rw-r--r-- | fitzdraw/imageunpack.c | 2 | ||||
-rw-r--r-- | fitzdraw/render.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fitzdraw/imageunpack.c b/fitzdraw/imageunpack.c index 15730479..50a65253 100644 --- a/fitzdraw/imageunpack.c +++ b/fitzdraw/imageunpack.c @@ -48,7 +48,7 @@ static void decodetile(fz_pixmap *pix, int skip, float *decode) if (justinvert) { unsigned *wp = (unsigned *)p; - if (((unsigned long)wp & 3) == 0) { + if ((((char *)wp - (char *)0) & 3) == 0) { int hwh = wh / 2; wh = wh - 2 * hwh; while(hwh--) { diff --git a/fitzdraw/render.c b/fitzdraw/render.c index da06ed83..97941d95 100644 --- a/fitzdraw/render.c +++ b/fitzdraw/render.c @@ -153,7 +153,7 @@ DEBUG("solid %s [%d %d %d %d];\n", solid->cs->name, gc->argb[0], gc->argb[1], gc r = gc->argb[1]; g = gc->argb[2]; b = gc->argb[3]; - if ((unsigned long)p & 3) { + if ((p - (unsigned char *)0) & 3) { while (n--) { p[0] = a; |