+ cast to unsigned int to avoid compiler warnings

This commit is contained in:
Artem Pavlenko 2009-01-26 14:25:05 +00:00
parent e346025cab
commit 9b1c4b2413

View file

@ -339,8 +339,9 @@ namespace mapnik {
void operator () (float a) const
{
c_.set_alpha(a * 255.0 + 0.5);
c_.set_alpha(unsigned(a * 255.0 + 0.5));
}
ColorT& c_;
};