summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-31 17:01:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-31 17:01:38 +0300
commit5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5 (patch)
treeaeafccf4632262393b23e52afc9facc5ec9f1b3f /src/gui
parent84f2cad3897d0dacb60cfef4e1860ffb8ec268e1 (diff)
downloadmv-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.gz
mv-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.bz2
mv-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.xz
mv-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.zip
Fix sign on some vars.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/palette.h2
-rw-r--r--src/gui/sdlinput.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index de733f838..bd974a94b 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -204,7 +204,7 @@ class Palette
gradientIndex = rand();
}
- inline int getRGB() const A_WARN_UNUSED
+ inline unsigned int getRGB() const A_WARN_UNUSED
{
return (committedColor.r << 16) | (committedColor.g << 8) |
committedColor.b;
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp
index 665617c8d..05518e9a6 100644
--- a/src/gui/sdlinput.cpp
+++ b/src/gui/sdlinput.cpp
@@ -313,7 +313,7 @@ MouseButton::Type SDLInput::convertMouseButton(const int button)
#endif
default:
// We have an unknown mouse type which is ignored.
- logger->log("unknown button type: %u", button);
+ logger->log("unknown button type: %d", button);
return MouseButton::EMPTY;
}
}