Suppressed MSVC++ warning C4267
'=': conversion from 'size_t' to 'ai_uint32', possible loss of datapull/2905/head
parent
fb5a30efd0
commit
3ab21c926c
|
@ -541,7 +541,7 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
|
||||||
size_t iLen2 = iLen+1;
|
size_t iLen2 = iLen+1;
|
||||||
iLen2 = iLen2 > MAXLEN ? MAXLEN : iLen2;
|
iLen2 = iLen2 > MAXLEN ? MAXLEN : iLen2;
|
||||||
memcpy(szFile.data,(const char*)szCurrent,iLen2);
|
memcpy(szFile.data,(const char*)szCurrent,iLen2);
|
||||||
szFile.length = iLen;
|
szFile.length = (ai_uint32)iLen;
|
||||||
|
|
||||||
szCurrent += iLen2;
|
szCurrent += iLen2;
|
||||||
|
|
||||||
|
@ -710,7 +710,7 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
|
||||||
aiString szFile;
|
aiString szFile;
|
||||||
const size_t iLen = strlen((const char*)szCurrent);
|
const size_t iLen = strlen((const char*)szCurrent);
|
||||||
::memcpy(szFile.data,(const char*)szCurrent,iLen+1);
|
::memcpy(szFile.data,(const char*)szCurrent,iLen+1);
|
||||||
szFile.length = iLen;
|
szFile.length = (ai_uint32)iLen;
|
||||||
|
|
||||||
pcMatOut->AddProperty(&szFile,AI_MATKEY_TEXTURE_DIFFUSE(0));
|
pcMatOut->AddProperty(&szFile,AI_MATKEY_TEXTURE_DIFFUSE(0));
|
||||||
|
|
||||||
|
@ -831,7 +831,7 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
|
||||||
aiString szFile;
|
aiString szFile;
|
||||||
::memcpy(szFile.data,pcSkin->texture_name,sizeof(pcSkin->texture_name));
|
::memcpy(szFile.data,pcSkin->texture_name,sizeof(pcSkin->texture_name));
|
||||||
szFile.data[sizeof(pcSkin->texture_name)] = '\0';
|
szFile.data[sizeof(pcSkin->texture_name)] = '\0';
|
||||||
szFile.length = ::strlen(szFile.data);
|
szFile.length = (ai_uint32)::strlen(szFile.data);
|
||||||
|
|
||||||
pcMatOut->AddProperty(&szFile,AI_MATKEY_NAME);
|
pcMatOut->AddProperty(&szFile,AI_MATKEY_NAME);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue