Merge pull request #2408 from sergey-shambir/gcc_warning

Fixed GCC warning on narrowing conversion
This commit is contained in:
James Chen 2013-04-19 02:14:00 -07:00
commit 985b3a100e
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ void CCTextFieldTTF::setColorSpaceHolder(const ccColor3B& color)
// input text property // input text property
void CCTextFieldTTF::setString(const char *text) void CCTextFieldTTF::setString(const char *text)
{ {
static char bulletString[] = {0xe2, 0x80, 0xa2, 0x00}; static char bulletString[] = {(char)0xe2, (char)0x80, (char)0xa2, (char)0x00};
std::string displayText; std::string displayText;
int length; int length;