diff --git a/MagickCore/compress.c b/MagickCore/compress.c
index 1319621..5aa87f0 100644
--- a/MagickCore/compress.c
+++ b/MagickCore/compress.c
@@ -806,7 +806,7 @@
     for (x=0; x < (ssize_t) huffman_image->columns; x++)
     {
       *q++=(unsigned char) (GetPixelIntensity(huffman_image,p) >=
-        ((MagickRealType) QuantumRange/2.0) ? 0 : 1);
+        ((double) QuantumRange/2.0) ? 0 : 1);
       p+=GetPixelChannels(huffman_image);
     }
     /*