diff options
Diffstat (limited to 'coders/map.c')
-rw-r--r-- | coders/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coders/map.c b/coders/map.c index cf5528967..873c9b8c0 100644 --- a/coders/map.c +++ b/coders/map.c @@ -448,7 +448,7 @@ static MagickBooleanType WriteMAPImage(const ImageInfo *image_info,Image *image, { if (image->colors > 256) *q++=(unsigned char) ((size_t) GetPixelIndex(image,p) >> 8); - *q++=(unsigned char) GetPixelIndex(image,p); + *q++=(unsigned char) ((ssize_t) GetPixelIndex(image,p)); p+=GetPixelChannels(image); } (void) WriteBlob(image,(size_t) (q-pixels),pixels); |