]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 24 Dec 2016 18:43:32 +0000 (13:43 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 24 Dec 2016 18:43:32 +0000 (13:43 -0500)
coders/png.c

index bc3ab76e2e2680a1ab837fcc681735f5b63ba27a..a6746caa1c20eb460561b777dd733118b557d11e 100644 (file)
@@ -3031,7 +3031,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
           Quantum
             scale;
 
-          scale = (Quantum) ((65535UL)/((1UL << ping_file_depth)-1));
+          scale = (Quantum) (65535/((1UL << ping_file_depth)-1));
 
 #if (MAGICKCORE_QUANTUM_DEPTH > 16)
           scale = ScaleShortToQuantum(scale);