Add missing static casts
parent
cb657e4c13
commit
e4f38810ca
|
@ -105,7 +105,7 @@ aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
|
|||
return AI_FAILURE;
|
||||
}
|
||||
|
||||
iNum = (unsigned int)std::min((size_t)iNum,prop->mDataLength / sizeof(Type));
|
||||
iNum = static_cast<unsigned int>(std::min(static_cast<size_t>(iNum),prop->mDataLength / sizeof(Type)));
|
||||
::memcpy(pOut,prop->mData,iNum * sizeof(Type));
|
||||
if (pMax) {
|
||||
*pMax = iNum;
|
||||
|
|
Loading…
Reference in New Issue