diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-18 01:51:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-18 01:51:36 +0300 |
commit | f0e95132f27ceb901fbd779fafc798a1f67a06a6 (patch) | |
tree | 52ee9ab21f4e01c2c8ae70b86841b0138349645d /src/guichan/defaultfont.cpp | |
parent | 7e0a97d2521b9ce57003176e82a0b5564aa003c2 (diff) | |
download | plus-f0e95132f27ceb901fbd779fafc798a1f67a06a6.tar.gz plus-f0e95132f27ceb901fbd779fafc798a1f67a06a6.tar.bz2 plus-f0e95132f27ceb901fbd779fafc798a1f67a06a6.tar.xz plus-f0e95132f27ceb901fbd779fafc798a1f67a06a6.zip |
Another warning fixes.
Diffstat (limited to 'src/guichan/defaultfont.cpp')
-rw-r--r-- | src/guichan/defaultfont.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guichan/defaultfont.cpp b/src/guichan/defaultfont.cpp index feeb91001..8d0b23623 100644 --- a/src/guichan/defaultfont.cpp +++ b/src/guichan/defaultfont.cpp @@ -64,7 +64,7 @@ namespace gcn int DefaultFont::getWidth(const std::string& text) const { - return 8*text.size(); + return static_cast<int>(8 * text.size()); } int DefaultFont::drawGlyph(Graphics* graphics, @@ -88,7 +88,7 @@ namespace gcn int DefaultFont::getStringIndexAt(const std::string& text, int x) const { if (x > static_cast<int>(text.size() * 8)) - return text.size(); + return static_cast<int>(text.size()); return x / 8; } |