Browse Source

Eliminated error in MSVC.

Andreas Henne 10 years ago
parent
commit
816ceeda69
1 changed files with 2 additions and 2 deletions
  1. 2 2
      code/STLLoader.cpp

+ 2 - 2
code/STLLoader.cpp

@@ -186,7 +186,7 @@ void STLImporter::InternReadFile( const std::string& pFile,
     pScene->mRootNode = new aiNode();
     pScene->mRootNode->mNumMeshes = pScene->mNumMeshes;
     pScene->mRootNode->mMeshes = new unsigned int[pScene->mNumMeshes];
-    for (uint i = 0; i < pScene->mNumMeshes; i++)
+    for (unsigned int i = 0; i < pScene->mNumMeshes; i++)
         pScene->mRootNode->mMeshes[i] = i;
 
 	// create a single default material, using a light gray diffuse color for consistency with
@@ -254,7 +254,7 @@ void STLImporter::LoadASCIIFile()
         }
         else pScene->mRootNode->mName.Set("<STL_ASCII>");
 
-        uint faceVertexCounter = 0;
+        unsigned int faceVertexCounter = 0;
         for ( ;; )
         {
             // go to the next token