Warning fix in CCTextFieldTTF.cpp.

This commit is contained in:
James Chen 2014-01-06 20:01:28 +08:00
parent 18934eeca3
commit dd0e157c74
1 changed files with 1 additions and 1 deletions

View File

@ -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;