diff options
Diffstat (limited to 'src/gui/font.cpp')
-rw-r--r-- | src/gui/font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<int>(i); } return static_cast<int>(sz); |