From 88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Apr 2014 19:52:16 +0300 Subject: Fix code style in gui. --- src/gui/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/font.cpp') diff --git a/src/gui/font.cpp b/src/gui/font.cpp index acc27d4ab..b5bb46eb0 100644 --- a/src/gui/font.cpp +++ b/src/gui/font.cpp @@ -645,7 +645,7 @@ int Font::getStringIndexAt(const std::string& text, const int x) const for (size_t i = 0; i < sz; ++i) { if (getWidth(text.substr(0, i)) > x) - return i; + return static_cast(i); } return static_cast(sz); -- cgit v1.2.3-70-g09d2