diff --git a/coders/tiff.c b/coders/tiff.c
index 18a408c..fa5a680 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -1401,7 +1401,7 @@
                 image->rows-y);
             }
           i--;
-          p=pixels+image->columns*i;
+          p=((unint32 *) pixels)+image->columns*i;
           for (x=0; x < (ssize_t) image->columns; x++)
           {
             q->red=ScaleCharToQuantum((unsigned char) (TIFFGetR(*p)));