]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 22 Sep 2010 11:55:02 +0000 (11:55 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 22 Sep 2010 11:55:02 +0000 (11:55 +0000)
magick/cache.c

index a8dcbdf9ed3238aa98738e0a8772287225747f76..35c82c4aff87951e13ef54802969f029ad9022a0 100644 (file)
@@ -1715,9 +1715,8 @@ static inline MagickBooleanType IsNexusInCore(const CacheInfo *cache_info,
     return(MagickTrue);
   offset=(MagickOffsetType) nexus_info->region.y*cache_info->columns+
     nexus_info->region.x;
-  if (nexus_info->pixels != (cache_info->pixels+offset))
-    return(MagickFalse);
-  return(MagickTrue);
+  return(nexus_info->pixels == (cache_info->pixels+offset) ? MagickTrue :
+    MagickFalse);
 }
 
 MagickExport PixelPacket *GetAuthenticPixelCacheNexus(Image *image,