]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 25 Dec 2016 15:50:38 +0000 (10:50 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 25 Dec 2016 15:50:38 +0000 (10:50 -0500)
coders/png.c

index 6bea2dbb1663c9f469833212bdabc786341b2ca4..8661ca8681c06fb5728b0afeeb3d8a445db9773f 100644 (file)
@@ -3032,7 +3032,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
           Quantum
             scale;
 
-          scale = (Quantum) (65535/((1UL << ping_file_depth)-1));
+          scale = (Quantum) (65535.0/((1UL << ping_file_depth)-1.0));
 
 #if (MAGICKCORE_QUANTUM_DEPTH > 16)
           scale = ScaleShortToQuantum(scale);