From 2a43160d39e4d48809dc0a41c6964b4d2e7a2ab6 Mon Sep 17 00:00:00 2001 From: Walzer Date: Tue, 12 Oct 2010 04:07:49 +0000 Subject: [PATCH] fix a warning --- cocos2dx/CCDirector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);