]> granicus.if.org Git - imagemagick/commitdiff
Build fix.
authordirk <dirk@git.imagemagick.org>
Sat, 6 Sep 2014 22:49:23 +0000 (22:49 +0000)
committerdirk <dirk@git.imagemagick.org>
Sat, 6 Sep 2014 22:49:23 +0000 (22:49 +0000)
Magick++/lib/Statistic.cpp

index 52e9b540526ab8da1bb234c5b883aa7def71fc79..1de723c1ac1241891d287d645756c2f9adfa800a 100644 (file)
@@ -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);
   }