From: cristy Date: Tue, 30 Apr 2013 20:06:50 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3766 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=461e78ea25298c0c2cfd27be6b41bd9679f7caf7;p=imagemagick --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index c886630ac..6ed23f51c 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -4497,6 +4497,9 @@ static inline MagickBooleanType AcquireCacheNexusPixels( static inline MagickBooleanType IsAuthenticCache( const CacheInfo *restrict cache_info,const NexusInfo *restrict nexus_info) { + MagickBooleanType + status; + MagickOffsetType offset; @@ -4504,8 +4507,9 @@ static inline MagickBooleanType IsAuthenticCache( return(MagickTrue); offset=(MagickOffsetType) nexus_info->region.y*cache_info->columns+ nexus_info->region.x; - return(nexus_info->pixels == (cache_info->pixels+offset) ? MagickTrue : - MagickFalse); + status=nexus_info->pixels == (cache_info->pixels+offset* + cache_info->number_channels) ? MagickTrue : MagickFalse; + return(status); } static inline void PrefetchPixelCacheNexusPixels(const NexusInfo *nexus_info,