]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 31 Jan 2018 23:38:40 +0000 (18:38 -0500)
committerCristy <urban-warrior@imagemagick.org>
Wed, 31 Jan 2018 23:38:40 +0000 (18:38 -0500)
coders/sixel.c

index 0e7b7298319a21947b535e0045cf2ab9a03b8827..6ae26c4345ec2b68c578ab5d848c6d5ec5161411 100644 (file)
@@ -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;
                 }