Suppressed MSVC++ warning C4267

'=': conversion from 'size_t' to 'ai_uint32', possible loss of data
pull/2905/head
Matthias Moulin 2020-01-16 18:28:04 +01:00 committed by GitHub
parent 3ab21c926c
commit 91ecad5da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 );