mirror of https://github.com/axmolengine/axmol.git
Warning fix in CCTextFieldTTF.cpp.
This commit is contained in:
parent
18934eeca3
commit
dd0e157c74
|
@ -216,7 +216,7 @@ void TextFieldTTF::deleteBackward()
|
|||
++deleteLen;
|
||||
}
|
||||
|
||||
if (_delegate && _delegate->onTextFieldDeleteBackward(this, _inputText.c_str() + len - deleteLen, deleteLen))
|
||||
if (_delegate && _delegate->onTextFieldDeleteBackward(this, _inputText.c_str() + len - deleteLen, static_cast<int>(deleteLen)))
|
||||
{
|
||||
// delegate doesn't wan't to delete backwards
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue