From bcb0f452d1391f6b24b9e559481734a8a2e1d187 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 12 Feb 2012 19:26:56 +0000 Subject: [PATCH] --- MagickCore/histogram.c | 3 ++- coders/tiff.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MagickCore/histogram.c b/MagickCore/histogram.c index b1dc5b0ad..d846fe2ce 100644 --- a/MagickCore/histogram.c +++ b/MagickCore/histogram.c @@ -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) { diff --git a/coders/tiff.c b/coders/tiff.c index af669d3cd..997c70f62 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -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 -- 2.40.0