From: dirk Date: Sat, 6 Sep 2014 22:49:23 +0000 (+0000) Subject: Build fix. X-Git-Tag: 7.0.1-0~2038 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b27956a2e5105465a555508ddb3aa87881bcf55e;p=imagemagick Build fix. --- diff --git a/Magick++/lib/Statistic.cpp b/Magick++/lib/Statistic.cpp index 52e9b5405..1de723c1a 100644 --- a/Magick++/lib/Statistic.cpp +++ b/Magick++/lib/Statistic.cpp @@ -145,7 +145,7 @@ Magick::ChannelPerceptualHash::ChannelPerceptualHash( for (i=0; i<14; i++) { - unsigned long + unsigned int hex; double @@ -187,7 +187,7 @@ Magick::ChannelPerceptualHash::operator std::string() const double value; - unsigned long + unsigned int hex; if (i < 7) @@ -205,7 +205,7 @@ Magick::ChannelPerceptualHash::operator std::string() const hex=(hex<<1); if (value < 0.0) hex|=1; - hex=(hex<<16)+(unsigned long)(value < 0.0 ? -(value - 0.5) : value + 0.5); + hex=(hex<<16)+(unsigned int)(value < 0.0 ? -(value - 0.5) : value + 0.5); (void) FormatLocaleString(buffer,6,"%05x",hex); hash+=std::string(buffer); }