diff --git a/cocos2dx/CCDirector.cpp b/cocos2dx/CCDirector.cpp index 366e415391..ec908c996a 100644 --- a/cocos2dx/CCDirector.cpp +++ b/cocos2dx/CCDirector.cpp @@ -126,7 +126,7 @@ bool CCDirector::init(void) m_bDisplayFPS = false; m_nFrames = 0; m_pszFPS = new char[10]; - m_fExpectedFrameRate = 1 / m_dAnimationInterval; + m_fExpectedFrameRate = (ccTime)(1 / m_dAnimationInterval);