Suppressed MSVC++ warning C4267
'=': conversion from 'size_t' to 'ai_uint32', possible loss of datapull/2905/head
parent
e0e9ec720b
commit
fb5a30efd0
|
@ -1575,7 +1575,7 @@ void MDLImporter::InternReadFile_3DGS_MDL7( )
|
||||||
const size_t maxSize(buffersize - (i*AI_MDL7_MAX_GROUPNAMESIZE));
|
const size_t maxSize(buffersize - (i*AI_MDL7_MAX_GROUPNAMESIZE));
|
||||||
pcNode->mName.length = ai_snprintf(szBuffer, maxSize, "Group_%u", p);
|
pcNode->mName.length = ai_snprintf(szBuffer, maxSize, "Group_%u", p);
|
||||||
} else {
|
} else {
|
||||||
pcNode->mName.length = ::strlen(szBuffer);
|
pcNode->mName.length = (ai_uint32)::strlen(szBuffer);
|
||||||
}
|
}
|
||||||
::strncpy(pcNode->mName.data,szBuffer,MAXLEN-1);
|
::strncpy(pcNode->mName.data,szBuffer,MAXLEN-1);
|
||||||
++p;
|
++p;
|
||||||
|
|
Loading…
Reference in New Issue