+ cast to unsigned int to avoid compiler warnings
This commit is contained in:
parent
e346025cab
commit
9b1c4b2413
1 changed files with 2 additions and 1 deletions
|
@ -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_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue