]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 10 Mar 2014 13:19:17 +0000 (13:19 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 10 Mar 2014 13:19:17 +0000 (13:19 +0000)
MagickCore/accelerate.c

index f92781318ebbbc5c9bad7dad9088f8c882ae3532..8617a0860413f0c6cfe470a4dd12861195c22a38 100644 (file)
@@ -4500,7 +4500,7 @@ MagickExport MagickBooleanType ComputeContrastStretchImageChannel(Image *image,
   */
   histogram=(cl_uint4 *) AcquireQuantumMemory(MaxMap+1UL, sizeof(*histogram));
 
-  if ((histogram == (cl_uint4 *) NULL))
+  if (histogram == (cl_uint4 *) NULL)
     ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename);
  
   /* reset histogram */
@@ -4723,7 +4723,7 @@ MagickExport MagickBooleanType ComputeContrastStretchImageChannel(Image *image,
   stretch_map=(PixelPacket *) AcquireQuantumMemory(MaxMap+1UL,
     sizeof(*stretch_map));
 
-  if ((stretch_map == (PixelPacket *) NULL))
+  if (stretch_map == (PixelPacket *) NULL)
     ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
       image->filename);