From e4f38810cad912e2dea23e2810e6f77e00358fbf Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 13 Dec 2021 18:12:19 +0100 Subject: [PATCH] Add missing static casts --- include/assimp/material.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/assimp/material.inl b/include/assimp/material.inl index 27f17ec28..7f4b44575 100644 --- a/include/assimp/material.inl +++ b/include/assimp/material.inl @@ -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(std::min(static_cast(iNum),prop->mDataLength / sizeof(Type))); ::memcpy(pOut,prop->mData,iNum * sizeof(Type)); if (pMax) { *pMax = iNum;