fix -Wsign-conversion warnings
This commit is contained in:
parent
d9bc3dbb81
commit
a5f8ba5c6c
1 changed files with 2 additions and 2 deletions
|
@ -134,9 +134,9 @@ public:
|
|||
inline unsigned rgba() const
|
||||
{
|
||||
#ifdef MAPNIK_BIG_ENDIAN
|
||||
return (alpha_) | (blue_ << 8) | (green_ << 16) | (red_ << 24) ;
|
||||
return static_cast<unsigned>((alpha_) | (blue_ << 8) | (green_ << 16) | (red_ << 24)) ;
|
||||
#else
|
||||
return (alpha_ << 24) | (blue_ << 16) | (green_ << 8) | (red_) ;
|
||||
return static_cast<unsigned>((alpha_ << 24) | (blue_ << 16) | (green_ << 8) | (red_)) ;
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue