static int IntensityCompare(const void *x,const void *y)
{
- double
- intensity;
-
PixelInfo
*color_1,
*color_2;
+ ssize_t
+ intensity;
+
color_1=(PixelInfo *) x;
color_2=(PixelInfo *) y;
- intensity=GetPixelInfoIntensity((const Image *) NULL,color_1)-
- GetPixelInfoIntensity((const Image *) NULL,color_2);
- if (intensity > (double) INT_MAX)
- intensity=(double) INT_MAX;
- if (intensity < (double) INT_MIN)
- intensity=(double) INT_MIN;
+ intensity=(ssize_t) GetPixelInfoIntensity((const Image *) NULL,color_1)-
+ (ssize_t) GetPixelInfoIntensity((const Image *) NULL,color_2);
return((int) intensity);
}