]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 25 Oct 2010 13:12:02 +0000 (13:12 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 25 Oct 2010 13:12:02 +0000 (13:12 +0000)
coders/bgr.c
coders/psd.c

index 5a5b7b1e247219aebd91b7c7fa781f5b2737a853..c6abd54f4b6ddfeeab4f769ea1f42cc4be63152e 100644 (file)
@@ -1063,11 +1063,11 @@ static MagickBooleanType WriteBGRImage(const ImageInfo *image_info,
     quantum_type;
 
   ssize_t
-    count;
+    count,
+    y;
 
   size_t
-    length,
-    y;
+    length;
 
   unsigned char
     *pixels;
index 4037ffa68d1bd8f1cadc2061397f3bf348cbb49e..6264641dda642eab159912cf322f510758de0c80 100644 (file)
@@ -651,7 +651,7 @@ static MagickBooleanType ReadPSDLayer(Image *image,const size_t channels,
                   ssize_t
                     bit;
 
-                  for (bit=0; bit < (image->columns % 8); bit++)
+                  for (bit=0; bit < (ssize_t) (image->columns % 8); bit++)
                   {
                     indexes[x]=((((unsigned char) pixel) & (0x01 << (7-bit)))
                       != 0 ? 0 : 255);