diff options
Diffstat (limited to 'src/guichan/defaultfont.cpp')
-rw-r--r-- | src/guichan/defaultfont.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guichan/defaultfont.cpp b/src/guichan/defaultfont.cpp index 8d0b23623..e6da87fcd 100644 --- a/src/guichan/defaultfont.cpp +++ b/src/guichan/defaultfont.cpp @@ -78,7 +78,7 @@ namespace gcn void DefaultFont::drawString(Graphics* graphics, const std::string& text, int x, int y) { - for (unsigned int i = 0; i< text.size(); ++i) + for (size_t i = 0, sz = text.size(); i < sz; ++i) { drawGlyph(graphics, text.at(i), x, y); x += getWidth(text); |