diff options
author | cristy <urban-warrior@git.imagemagick.org> | 2011-04-25 17:05:31 +0000 |
---|---|---|
committer | cristy <urban-warrior@git.imagemagick.org> | 2011-04-25 17:05:31 +0000 |
commit | 04cc58418cbf26068bb1cffd0a56f7f201a1fb09 (patch) | |
tree | 332124196adadcecbd0a51bca4f059b05e6cb126 /coders/map.c | |
parent | c9fb5843c3913d8901bf29d4a67452f6182f4949 (diff) | |
download | ImageMagick-04cc58418cbf26068bb1cffd0a56f7f201a1fb09.tar.gz |
Diffstat (limited to 'coders/map.c')
-rw-r--r-- | coders/map.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coders/map.c b/coders/map.c index 7224cff37..0a5593fb9 100644 --- a/coders/map.c +++ b/coders/map.c @@ -428,8 +428,7 @@ static MagickBooleanType WriteMAPImage(const ImageInfo *image_info,Image *image) for (x=0; x < (ssize_t) image->columns; x++) { if (image->colors > 256) - *q++=(unsigned char) ((size_t) (GetIndexPixelComponent(indexes+x) >> - 8)); + *q++=(unsigned char) ((size_t) GetIndexPixelComponent(indexes+x) >> 8); *q++=(unsigned char) GetIndexPixelComponent(indexes+x); } (void) WriteBlob(image,(size_t) (q-pixels),pixels); |