summaryrefslogtreecommitdiff
path: root/src/guichan/defaultfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-22 19:50:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-22 22:33:52 +0300
commita8d90b8a84b5a21c53fb5d279dc983ae1e2c3217 (patch)
treef1e35affbe927a1e81fcfafe91747fe3c1e3f56d /src/guichan/defaultfont.cpp
parent3e75f388c21a7c9a00ef2ff802023be00431248a (diff)
downloadmanaverse-a8d90b8a84b5a21c53fb5d279dc983ae1e2c3217.tar.gz
manaverse-a8d90b8a84b5a21c53fb5d279dc983ae1e2c3217.tar.bz2
manaverse-a8d90b8a84b5a21c53fb5d279dc983ae1e2c3217.tar.xz
manaverse-a8d90b8a84b5a21c53fb5d279dc983ae1e2c3217.zip
Fix code style.
Diffstat (limited to 'src/guichan/defaultfont.cpp')
-rw-r--r--src/guichan/defaultfont.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guichan/defaultfont.cpp b/src/guichan/defaultfont.cpp
index 8871d51de..70901bc8e 100644
--- a/src/guichan/defaultfont.cpp
+++ b/src/guichan/defaultfont.cpp
@@ -89,7 +89,7 @@ namespace gcn
int DefaultFont::getStringIndexAt(const std::string& text, int x) const
{
- if (x > (int)text.size() * 8)
+ if (x > static_cast<int>(text.size() * 8))
return text.size();
return x / 8;