]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 12 Feb 2012 19:26:56 +0000 (19:26 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 12 Feb 2012 19:26:56 +0000 (19:26 +0000)
MagickCore/histogram.c
coders/tiff.c

index b1dc5b0ad30cc6b26e44425e5c37b34d33537870..d846fe2ce576f13dd6f0eab7c7da7687f911dddd 100644 (file)
@@ -1157,7 +1157,8 @@ MagickExport size_t GetNumberColors(const Image *image,FILE *file,
     (void) ConcatenateMagickString(tuple,")",MaxTextExtent);
     (void) QueryColorname(image,&pixel,SVGCompliance,color,exception);
     GetColorTuple(&pixel,MagickTrue,hex);
-    (void) FormatLocaleFile(file,"%10" MagickSizeFormat,p->count);
+    (void) FormatLocaleFile(file,"%10.20g",(double) ((MagickOffsetType) 
+      p->count));
     (void) FormatLocaleFile(file,": %s %s %s\n",tuple,hex,color);
     if (image->progress_monitor != (MagickProgressMonitor) NULL)
       {
index af669d3cd2bb64370309a4cf27c0c95ca8bc38a0..997c70f620183036fd8f46c556c1e56e497896ee 100644 (file)
@@ -676,7 +676,8 @@ static void TIFFGetEXIFProperties(TIFF *tiff,Image *image,
           longy;
 
         if (TIFFGetField(tiff,exif_info[i].tag,&longy,&sans,&sans) != 0)
-          (void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double) longy);
+          (void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double)
+            ((MagickOffsetType) longy));
         break;
       }
 #endif