Use C++ style casts

This commit is contained in:
Aaron Jacobs
2023-02-17 11:20:00 -08:00
parent e4386d3013
commit 53e5f19b14
3 changed files with 4 additions and 4 deletions

View File

@@ -975,7 +975,7 @@ void MDLImporter::CalcAbsBoneMatrices_3DGS_MDL7(MDL::IntBone_MDL7 **apcOutBones)
}
// store the name of the bone
pcOutBone->mName.length = (ai_uint32)iMaxLen;
pcOutBone->mName.length = static_cast<ai_uint32>(iMaxLen);
::memcpy(pcOutBone->mName.data, pcBone->name, pcOutBone->mName.length);
pcOutBone->mName.data[pcOutBone->mName.length] = '\0';
}