summaryrefslogtreecommitdiff
path: root/graphics/ImageMagick/files/patch-coders_rle.c
blob: 184ddb77c96f772d935af9e382b03ea4aec4e920 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- coders/rle.c.orig	2015-01-01 22:58:53.775440763 +0100
+++ coders/rle.c	2015-01-01 23:00:50.825507571 +0100
@@ -456,7 +456,7 @@
             if (IsValidColormapIndex(image,*p & mask,&index,exception) ==
                 MagickFalse)
               break;
-            *p=colormap[index];
+            *p=colormap[(ssize_t)index];
             p++;
           }
         else
@@ -467,7 +467,7 @@
                 if (IsValidColormapIndex(image,(size_t) (x*map_length+
                     (*p & mask)),&index,exception) == MagickFalse)
                   break;
-                *p=colormap[index];
+                *p=colormap[(ssize_t)index];
                 p++;
               }
         if ((i < (ssize_t) number_pixels) || (x < (ssize_t) number_planes))