From: Cristy Date: Sat, 24 Dec 2016 17:18:47 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-1~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e22ca4b2a96cd7e4324cc5ca264e88798ccdf5a;p=imagemagick ... --- diff --git a/coders/dds.c b/coders/dds.c index d41706fd8..6fd058acd 100644 --- a/coders/dds.c +++ b/coders/dds.c @@ -725,9 +725,9 @@ static const DDSSingleColourLookup* #define FixRange(min, max, steps) \ if (min > max) \ min = max; \ -if (max - min < steps) \ +if ((ssize_t) max - min < steps) \ max = MagickMin(min + steps, 255); \ -if (max - min < steps) \ +if ((ssize_t) max - min < steps) \ min = MagickMax(0, max - steps) #define Dot(left, right) (left.x*right.x) + (left.y*right.y) + (left.z*right.z)