From d7c4d1cebe0454ec33c82a85c86a2737fc0f2b41 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 22 Mar 2015 17:16:52 +0000 Subject: [PATCH] --- coders/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/png.c b/coders/png.c index 66137d31b..05b6fd445 100644 --- a/coders/png.c +++ b/coders/png.c @@ -3025,7 +3025,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, Quantum scale; - scale = 65535UL/((1UL << ping_file_depth)-1); + scale = (Quantum) (65535UL)/((1UL << ping_file_depth)-1); #if (MAGICKCORE_QUANTUM_DEPTH > 16) scale = ScaleShortToQuantum(scale); -- 2.40.0