Bladeren bron

Suppressed MSVC++ warning C4267

'=': conversion from 'size_t' to 'ai_uint32', possible loss of data
Matthias Moulin 5 jaren geleden
bovenliggende
commit
91ecad5da8
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      code/Material/MaterialSystem.cpp

+ 1 - 1
code/Material/MaterialSystem.cpp

@@ -504,7 +504,7 @@ aiReturn aiMaterial::AddBinaryProperty (const void* pInput,
     pcNew->mData = new char[pSizeInBytes];
     memcpy (pcNew->mData,pInput,pSizeInBytes);
 
-    pcNew->mKey.length = ::strlen(pKey);
+    pcNew->mKey.length = (ai_uint32)::strlen(pKey);
     ai_assert ( MAXLEN > pcNew->mKey.length);
     strcpy( pcNew->mKey.data, pKey );