From 559108630276a3ea26470a5481209ab500c1969a Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 8 Oct 2023 15:20:44 +0200 Subject: [PATCH] Fix: Waning implicite cast --- test/unit/utglTF2ImportExport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/utglTF2ImportExport.cpp b/test/unit/utglTF2ImportExport.cpp index 535042682..6778e2679 100644 --- a/test/unit/utglTF2ImportExport.cpp +++ b/test/unit/utglTF2ImportExport.cpp @@ -582,15 +582,15 @@ void checkSkinnedSceneLimited(const aiScene *scene){ {0.000f, 0.000f, 0.000f, 0.111f}, {0.000f, 0.000f, 0.000f, 0.000f}, {0.000f, 0.000f, 0.000f, 0.000f}}; - for (size_t boneIndex = 0; boneIndex < 10u; ++boneIndex) { + for (unsigned int boneIndex = 0; boneIndex < 10u; ++boneIndex) { EXPECT_EQ(scene->mMeshes[0]->mBones[boneIndex]->mNumWeights, numWeights[boneIndex]); std::map map; - for (size_t jointIndex = 0; jointIndex < scene->mMeshes[0]->mBones[boneIndex]->mNumWeights; ++jointIndex){ + for (unsigned int jointIndex = 0; jointIndex < scene->mMeshes[0]->mBones[boneIndex]->mNumWeights; ++jointIndex){ auto key = scene->mMeshes[0]->mBones[boneIndex]->mWeights[jointIndex].mVertexId; auto weight = scene->mMeshes[0]->mBones[boneIndex]->mWeights[jointIndex].mWeight; map[key] = weight; } - for (size_t jointIndex = 0; jointIndex < scene->mMeshes[0]->mBones[boneIndex]->mNumWeights; ++jointIndex) { + for (unsigned int jointIndex = 0; jointIndex < scene->mMeshes[0]->mBones[boneIndex]->mNumWeights; ++jointIndex) { auto weight = map[jointIndex]; EXPECT_LT(std::abs(ai_real(weight) - ai_real(weights[boneIndex][jointIndex])), 0.002); }