summaryrefslogtreecommitdiff
path: root/src/gui/palette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-23 16:24:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-23 19:04:08 +0300
commitecc0dbab411d6f1f741dd19d0bc593ecc36a4941 (patch)
tree3e7cbd083fd2d8e25da0ec76b22e62310f1e42c1 /src/gui/palette.h
parentbc4c9a33066e26bcdd3c564c90294777a839a5be (diff)
downloadplus-ecc0dbab411d6f1f741dd19d0bc593ecc36a4941.tar.gz
plus-ecc0dbab411d6f1f741dd19d0bc593ecc36a4941.tar.bz2
plus-ecc0dbab411d6f1f741dd19d0bc593ecc36a4941.tar.xz
plus-ecc0dbab411d6f1f741dd19d0bc593ecc36a4941.zip
fix code style.
Diffstat (limited to 'src/gui/palette.h')
-rw-r--r--src/gui/palette.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index 0c3c2dc87..a69a373b9 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -78,10 +78,10 @@ class Palette
*/
inline const gcn::Color &getColor(int type, int alpha = 255)
{
- if (type >= (signed)mColors.size())
+ if (type >= static_cast<signed>(mColors.size()))
{
- logger->log("incorrect color request type: %d from %ld",
- type, mColors.size());
+ logger->log("incorrect color request type: %d from %u",
+ type, static_cast<unsigned int>(mColors.size()));
type = 0;
}
gcn::Color* col = &mColors[type].color;