mirror of https://github.com/stella-emu/stella.git
Fixed a clang warning.
This commit is contained in:
parent
8aa6636e06
commit
3d729878b1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue