summaryrefslogtreecommitdiff
path: root/src/guichan/defaultfont.cpp
diff options
context:
space:
mode:
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;