| commit | a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599 | [log] [tgz] |
|---|---|---|
| author | cristy <urban-warrior@git.imagemagick.org> | Tue Aug 07 18:24:38 2012 +0000 |
| committer | cristy <urban-warrior@git.imagemagick.org> | Tue Aug 07 18:24:38 2012 +0000 |
| tree | 402921b0bd35d0be6e9bed1240c5c5608d6cb430 | |
| parent | 5048d30ffd6670a4b4c9986bbcb46b228afdd884 [diff] [blame] |
diff --git a/coders/sun.c b/coders/sun.c index f3901fd..56f4a64 100644 --- a/coders/sun.c +++ b/coders/sun.c
@@ -900,7 +900,7 @@ for (x=0; x < (ssize_t) image->columns; x++) { byte<<=1; - if (GetPixelIntensity(image,p) < (MagickRealType) (QuantumRange/2.0)) + if (GetPixelIntensity(image,p) < (double) (QuantumRange/2.0)) byte|=0x01; bit++; if (bit == 8)