diff --git a/cocos2dx/CCDirector.cpp b/cocos2dx/CCDirector.cpp index 376d01f084..0de8bf622f 100644 --- a/cocos2dx/CCDirector.cpp +++ b/cocos2dx/CCDirector.cpp @@ -585,7 +585,7 @@ void CCDirector::popToRootScene(void) void CCDirector::popToSceneStackLevel(int level) { CCAssert(m_pRunningScene != NULL, "A running Scene is needed"); - unsigned int c = m_pobScenesStack->count(); + int c = (int)m_pobScenesStack->count(); // level 0? -> end if (level == 0)