]> granicus.if.org Git - imagemagick/blobdiff - magick/colormap.c
(no commit message)
[imagemagick] / magick / colormap.c
index a3d608248e7eff0d1d5be865ac27656e5ad2b7b0..e1c8d4c50a87d2090e55d27c972f38aa8b3c09a1 100644 (file)
@@ -204,7 +204,7 @@ MagickExport MagickBooleanType CycleColormapImage(Image *image,
   status=MagickTrue;
   exception=(&image->exception);
   image_view=AcquireCacheView(image);
-#if defined(MAGICKCORE_OPENMP_SUPPORT) && defined(MAGICKCORE_FUTURE)
+#if defined(MAGICKCORE_OPENMP_SUPPORT) 
   #pragma omp parallel for schedule(dynamic,4) shared(status)
 #endif
   for (y=0; y < (ssize_t) image->rows; y++)
@@ -234,7 +234,7 @@ MagickExport MagickBooleanType CycleColormapImage(Image *image,
     {
       index=(ssize_t) (indexes[x]+displace) % image->colors;
       if (index < 0)
-        index+=image->colors;
+        index+=(ssize_t) image->colors;
       indexes[x]=(IndexPacket) index;
       q->red=image->colormap[index].red;
       q->green=image->colormap[index].green;