diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-07 01:53:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-07 01:53:51 +0300 |
commit | 2492b561385859b7ef76fe816a8dc845f0b9bd09 (patch) | |
tree | 62633f8cd7c027c2a8e1bae61264a79394aeb751 /src/gui/color.cpp | |
parent | ce14a018a6f66aa1309ebe71a8217082d83cd0da (diff) | |
download | manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.gz manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.bz2 manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.xz manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.zip |
Fix some casts between signed and unsigned in some files.
Diffstat (limited to 'src/gui/color.cpp')
-rw-r--r-- | src/gui/color.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/color.cpp b/src/gui/color.cpp index 85c77f08e..3e82a1210 100644 --- a/src/gui/color.cpp +++ b/src/gui/color.cpp @@ -126,9 +126,9 @@ Color Color::operator-(const Color& color) const Color Color::operator*(const float value) const { - Color result(static_cast<int>(static_cast<float>(r) * value), - static_cast<int>(static_cast<float>(g) * value), - static_cast<int>(static_cast<float>(b) * value), + Color result(static_cast<unsigned int>(static_cast<float>(r) * value), + static_cast<unsigned int>(static_cast<float>(g) * value), + static_cast<unsigned int>(static_cast<float>(b) * value), a); result.r = (result.r > 255U ? 255U : result.r); |