From: Cristy Date: Wed, 31 Jan 2018 23:38:40 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-23~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=065640174f48805ed65612c181a6a5c9e8296d6e;p=imagemagick ... --- diff --git a/coders/sixel.c b/coders/sixel.c index 0e7b72983..6ae26c434 100644 --- a/coders/sixel.c +++ b/coders/sixel.c @@ -336,8 +336,8 @@ MagickBooleanType sixel_decode(unsigned char /* in */ *p, if (param[2] == 0) { param[2] = 10; } - attributed_pan = (int) ((ssize_t) attributed_pan * param[2]) / 10; - attributed_pad = (int) ((ssize_t) attributed_pad * param[2]) / 10; + attributed_pan = (int) (((ssize_t) attributed_pan * param[2]) / 10); + attributed_pad = (int) (((ssize_t) attributed_pad * param[2]) / 10); if (attributed_pan <= 0) attributed_pan = 1; if (attributed_pad <= 0) attributed_pad = 1; }