Add missing static casts

pull/4253/head
Kim Kulling 2021-12-13 18:12:19 +01:00
parent cb657e4c13
commit e4f38810ca
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
return AI_FAILURE; 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)); ::memcpy(pOut,prop->mData,iNum * sizeof(Type));
if (pMax) { if (pMax) {
*pMax = iNum; *pMax = iNum;