From 480d79d90d1c5472d15530d2d25e0e66901c8302 Mon Sep 17 00:00:00 2001 From: dirk Date: Sat, 26 Oct 2013 15:35:02 +0000 Subject: [PATCH] Fixed cacheThreshold. --- Magick++/lib/Image.cpp | 4 ++-- Magick++/lib/Magick++/Image.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Magick++/lib/Image.cpp b/Magick++/lib/Image.cpp index 7aaf2166e..5a27849ef 100644 --- a/Magick++/lib/Image.cpp +++ b/Magick++/lib/Image.cpp @@ -3121,11 +3121,11 @@ Magick::Color Magick::Image::boxColor ( void ) const return constOptions()->boxColor( ); } -// Pixel cache threshold. Once this threshold is exceeded, all +// Pixel cache threshold. Once this threshold is exceeded, all // subsequent pixels cache operations are to/from disk. // This setting is shared by all Image objects. /* static */ -void Magick::Image::cacheThreshold ( const size_t threshold_ ) +void Magick::Image::cacheThreshold ( const MagickSizeType threshold_ ) { SetMagickResourceLimit( MemoryResource, threshold_ ); } diff --git a/Magick++/lib/Magick++/Image.h b/Magick++/lib/Magick++/Image.h index 096bb5102..187aa79bf 100644 --- a/Magick++/lib/Magick++/Image.h +++ b/Magick++/lib/Magick++/Image.h @@ -967,10 +967,10 @@ namespace Magick void boxColor ( const Color &boxColor_ ); Color boxColor ( void ) const; - // Pixel cache threshold in megabytes. Once this memory threshold + // Pixel cache threshold in bytes. Once this memory threshold // is exceeded, all subsequent pixels cache operations are to/from // disk. This setting is shared by all Image objects. - static void cacheThreshold ( const size_t threshold_ ); + static void cacheThreshold ( const MagickSizeType threshold_ ); // Chromaticity blue primary point (e.g. x=0.15, y=0.06) void chromaBluePrimary ( const double x_, const double y_ ); -- 2.40.0