From: Cristy Date: Mon, 31 Dec 2018 21:43:59 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.8-23~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea65818b2ab4eef10f788978b3c3f74282e65d3b;p=imagemagick ... --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 568c63b78..b1b4f01c3 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -3574,7 +3574,7 @@ static inline MagickOffsetType WritePixelCacheRegion( SSIZE_MAX)); #else count=pwrite(cache_info->file,buffer+i,(size_t) MagickMin(length-i,(size_t) - SSIZE_MAX),(off_t) (offset+i)); + SSIZE_MAX),offset+i); #endif if (count <= 0) { @@ -4388,7 +4388,7 @@ static inline MagickOffsetType ReadPixelCacheRegion( SSIZE_MAX)); #else count=pread(cache_info->file,buffer+i,(size_t) MagickMin(length-i,(size_t) - SSIZE_MAX),(off_t) (offset+i)); + SSIZE_MAX),offset+i); #endif if (count <= 0) { @@ -5438,8 +5438,7 @@ MagickExport MagickBooleanType SyncAuthenticPixels(Image *image, assert(image->cache != (Cache) NULL); cache_info=(CacheInfo *) image->cache; assert(cache_info->signature == MagickCoreSignature); - if (cache_info->methods.sync_authentic_pixels_handler != - (SyncAuthenticPixelsHandler) NULL) + if (cache_info->methods.sync_authentic_pixels_handler != (SyncAuthenticPixelsHandler) NULL) { status=cache_info->methods.sync_authentic_pixels_handler(image, exception);