From 784a05651b175f7e8ae957d0fa269a915ec97947 Mon Sep 17 00:00:00 2001 From: Matthias Moulin Date: Thu, 16 Jan 2020 18:29:30 +0100 Subject: [PATCH] Suppressed MSVC++ warning C4267 '=': conversion from 'size_t' to 'ai_uint32', possible loss of data --- code/SMD/SMDLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SMD/SMDLoader.cpp b/code/SMD/SMDLoader.cpp index 7eb6b18d1..aa1f26cc8 100644 --- a/code/SMD/SMDLoader.cpp +++ b/code/SMD/SMDLoader.cpp @@ -616,7 +616,7 @@ void SMDImporter::CreateOutputMaterials() { if (aszTextures[iMat].length()) { ::strncpy(szName.data, aszTextures[iMat].c_str(),MAXLEN-1); - szName.length = aszTextures[iMat].length(); + szName.length = (ai_uint32)aszTextures[iMat].length(); pcMat->AddProperty(&szName,AI_MATKEY_TEXTURE_DIFFUSE(0)); } }