ソースを参照

- Fix a compiler warning ( double to float ).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@392 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 16 年 前
コミット
9dfe7764b2
1 ファイル変更2 行追加2 行削除
  1. 2 2
      code/ColladaLoader.cpp

+ 2 - 2
code/ColladaLoader.cpp

@@ -883,7 +883,7 @@ void ColladaLoader::CreateAnimation( aiScene* pScene, const ColladaParser& pPars
 			continue;
 
 		// resolve the data pointers for all anim channels. Find the minimum time while we're at it
-		float startTime = 1e20, endTime = -1e20;
+		float startTime = 1e20f, endTime = -1e20f;
 		for( std::vector<ChannelEntry>::iterator it = entries.begin(); it != entries.end(); ++it)
 		{
 			ChannelEntry& e = *it;
@@ -959,7 +959,7 @@ void ColladaLoader::CreateAnimation( aiScene* pScene, const ColladaParser& pPars
 			resultTrafos.push_back( mat);
 
 			// find next point in time to evaluate. That's the closest frame larger than the current in any channel
-			float nextTime = 1e20;
+			float nextTime = 1e20f;
 			for( std::vector<ChannelEntry>::iterator it = entries.begin(); it != entries.end(); ++it)
 			{
 				ChannelEntry& e = *it;