浏览代码

Fixed build warnings on MSVC14 x64 in the XGL loader.

Jared Mulconry 8 年之前
父节点
当前提交
cf151b77d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/XGLLoader.cpp

+ 1 - 1
code/XGLLoader.cpp

@@ -711,7 +711,7 @@ unsigned int XGLImporter::ResolveMaterialRef(TempScope& scope)
     const std::string& s = GetElementName();
     if (s == "mat") {
         ReadMaterial(scope);
-        return scope.materials_linear.size()-1;
+        return static_cast<unsigned int>(scope.materials_linear.size()-1);
     }
 
     const int id = ReadIndexFromText();