]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 18 Sep 2017 23:20:24 +0000 (19:20 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 18 Sep 2017 23:20:24 +0000 (19:20 -0400)
MagickCore/histogram.c

index 5b9d9f877a11f1a43781ca4da5f031b43b938115..dc95bd3b4e9e51cd8d4295e24a921450b3d6d3b8 100644 (file)
@@ -78,8 +78,10 @@ typedef struct _NodeInfo
   PixelInfo
     *list;
 
+  size_t
+    extent;
+
   MagickSizeType
-    extent,
     number_unique;
 
   size_t
@@ -268,7 +270,7 @@ static CubeInfo *ClassifyImageColors(const Image *image,
                 node_info->extent,sizeof(*node_info->list));
             }
           else
-            if (i >= node_info->extent)
+            if (i >= (ssize_t) node_info->extent)
               {
                 node_info->extent<<=1;
                 node_info->list=(PixelInfo *) ResizeQuantumMemory(