Recommended change for double precision compiling
Posted: Tue Apr 19, 2005 1:29 pm
Compiler: MS 7.1
File: OgreAutoParamDataSource.cpp
Line: 401
Symptom:
When compiling with #define OGRE_DOUBLE_PRECISION 1 the following code failes compilation because the compiler can not resolve the intended overload to use:
I changed it to
which made the compiler happy.
File: OgreAutoParamDataSource.cpp
Line: 401
Symptom:
When compiling with #define OGRE_DOUBLE_PRECISION 1 the following code failes compilation because the compiler can not resolve the intended overload to use:
Code: Select all
Real AutoParamDataSource::getTime_0_X(Real x) const
{
return fmod(Root::getSingleton().getTimer()->getMilliseconds() / 1000.0f
, x);
}
Code: Select all
Real AutoParamDataSource::getTime_0_X(Real x) const
{
return fmod((Ogre::Real) Root::getSingleton().getTimer()->getMilliseconds() / 1000.0f
, x);
}