Fixed a clang warning.

This commit is contained in:
Stephen Anthony 2020-12-20 12:04:28 -03:30
parent 8aa6636e06
commit 3d729878b1
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ int EditableWidget::toCaretPos(int x) const
int i;
x += caretOfs();
for(i = 0; i < _editString.size(); ++i)
for(i = 0; i < static_cast<int>(_editString.size()); ++i)
{
x -= _font.getCharWidth(_editString[i]);
if(x <= 0)