Fixed build warnings on MSVC14 x64 in the Collada parser.
authorJared Mulconry <j.mulconry@atomizergames.com>
Fri, 18 Nov 2016 15:42:51 +0000 (02:42 +1100)
committerJared Mulconry <j.mulconry@atomizergames.com>
Fri, 18 Nov 2016 15:42:51 +0000 (02:42 +1100)
code/ColladaParser.cpp

index 1fd762e..fe2f047 100644 (file)
@@ -2535,7 +2535,7 @@ void ColladaParser::ExtractDataObjectFromChannel( const InputChannel& pInput, si
                 aiColor4D result(0, 0, 0, 1);
                 for (size_t i = 0; i < pInput.mResolved->mSize; ++i)
                 {
-                    result[i] = obj[pInput.mResolved->mSubOffset[i]];
+                    result[static_cast<unsigned int>(i)] = obj[pInput.mResolved->mSubOffset[i]];
                 }
                 pMesh->mColors[pInput.mIndex].push_back(result);
             } else