From cf151b77d8bed3eac5cb20629ad23038b08afbe3 Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Sun, 27 Nov 2016 16:03:25 +1100 Subject: [PATCH] Fixed build warnings on MSVC14 x64 in the XGL loader. --- code/XGLLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/XGLLoader.cpp b/code/XGLLoader.cpp index 30f520097..d14e9968d 100644 --- a/code/XGLLoader.cpp +++ b/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(scope.materials_linear.size()-1); } const int id = ReadIndexFromText();