fixed a warning in CCProfiling.cpp

This commit is contained in:
Walzer 2011-04-29 10:08:35 +08:00
parent 031a750f95
commit bdd0b44b99
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ namespace cocos2d
bool CCProfilingTimer::initWithName(const char* pszTimerName, CCObject *pInstance)
{
char tmp[160];
sprintf(tmp, "%s (0x%.8x)", pszTimerName, pInstance);
sprintf(tmp, "%s (0x%.8x)", pszTimerName, (unsigned int)pInstance);
m_NameStr = string(tmp);
m_dAverageTime = 0.0;