]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 19 Sep 2010 17:08:12 +0000 (17:08 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 19 Sep 2010 17:08:12 +0000 (17:08 +0000)
coders/stegano.c

index 2ee6658c04c963e5dc2a5d1d22da45694e3ec1ec..7a2ac17208e683c5843f60bd965162da6dbe566b 100644 (file)
@@ -174,7 +174,7 @@ static Image *ReadSTEGANOImage(const ImageInfo *image_info,
   c=0;
   i=0;
   j=0;
-  i=watermark->depth-1;
+  i=(ssize_t) (watermark->depth-1);
   depth=watermark->depth;
   for (k=image->offset; (i >= 0) && (j < (ssize_t) depth); i--)
   {
@@ -221,7 +221,7 @@ static Image *ReadSTEGANOImage(const ImageInfo *image_info,
           j++;
       }
     }
-    status=SetImageProgress(image,LoadImagesTag,i,depth);
+    status=SetImageProgress(image,LoadImagesTag,(MagickOffsetType) i,depth);
     if (status == MagickFalse)
       break;
   }