cleaned up sign-compare unittest build warnings

addresses issue #3624
pull/3625/head
contriteobserver 2021-01-30 16:49:32 -08:00
parent b2af2b2137
commit c86dcbe1a8
3 changed files with 6 additions and 6 deletions

View File

@ -46,7 +46,7 @@ TEST_F( utStandardShapes, testMakeMesh ) {
Assimp::StandardShapes::MakeSphere(1, positions); Assimp::StandardShapes::MakeSphere(1, positions);
// Make mesh // Make mesh
const auto numIndicesPerPrimitive = 3; const auto numIndicesPerPrimitive = 3u;
aiMesh *aiMeshPtr = Assimp::StandardShapes::MakeMesh(positions, numIndicesPerPrimitive); aiMesh *aiMeshPtr = Assimp::StandardShapes::MakeMesh(positions, numIndicesPerPrimitive);
// The mNumIndices member of the second face is now incorrect // The mNumIndices member of the second face is now incorrect

View File

@ -324,7 +324,7 @@ TEST_F(utFBXImporterExporter, importMaxPbrMaterialsMetalRoughness) {
ASSERT_NE(nullptr, scene); ASSERT_NE(nullptr, scene);
ASSERT_TRUE(scene->mRootNode); ASSERT_TRUE(scene->mRootNode);
ASSERT_EQ(scene->mNumMaterials, 1); ASSERT_EQ(scene->mNumMaterials, 1u);
const aiMaterial* mat = scene->mMaterials[0]; const aiMaterial* mat = scene->mMaterials[0];
aiString texture; aiString texture;
ASSERT_EQ(mat->Get(AI_MATKEY_TEXTURE(aiTextureType_BASE_COLOR, 0), texture), AI_SUCCESS); ASSERT_EQ(mat->Get(AI_MATKEY_TEXTURE(aiTextureType_BASE_COLOR, 0), texture), AI_SUCCESS);
@ -377,7 +377,7 @@ TEST_F(utFBXImporterExporter, importMaxPbrMaterialsSpecularGloss) {
ASSERT_NE(nullptr, scene); ASSERT_NE(nullptr, scene);
ASSERT_TRUE(scene->mRootNode); ASSERT_TRUE(scene->mRootNode);
ASSERT_EQ(scene->mNumMaterials, 1); ASSERT_EQ(scene->mNumMaterials, 1u);
const aiMaterial* mat = scene->mMaterials[0]; const aiMaterial* mat = scene->mMaterials[0];
aiString texture; aiString texture;
ASSERT_EQ(mat->Get(AI_MATKEY_TEXTURE(aiTextureType_BASE_COLOR, 0), texture), AI_SUCCESS); ASSERT_EQ(mat->Get(AI_MATKEY_TEXTURE(aiTextureType_BASE_COLOR, 0), texture), AI_SUCCESS);

View File

@ -201,8 +201,8 @@ TEST_F(FindDegeneratesProcessTest, meshRemoval) {
mProcess->Execute(scene.get()); mProcess->Execute(scene.get());
EXPECT_EQ(scene->mNumMeshes, 1); EXPECT_EQ(scene->mNumMeshes, 1u);
EXPECT_EQ(scene->mMeshes[0], meshWhichSurvives); EXPECT_EQ(scene->mMeshes[0], meshWhichSurvives);
EXPECT_EQ(scene->mRootNode->mNumMeshes, 1); EXPECT_EQ(scene->mRootNode->mNumMeshes, 1u);
EXPECT_EQ(scene->mRootNode->mMeshes[0], 0); EXPECT_EQ(scene->mRootNode->mMeshes[0], 0u);
} }