From 6886ea6c6571bfc03a9811cb38ee31f5f16b2d64 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 24 Jul 2020 10:57:24 +0200 Subject: [PATCH] Fix warning: comparison between unsigned and signed. --- test/unit/utglTF2ImportExport.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/unit/utglTF2ImportExport.cpp b/test/unit/utglTF2ImportExport.cpp index c3ad2d994..e991b04f3 100644 --- a/test/unit/utglTF2ImportExport.cpp +++ b/test/unit/utglTF2ImportExport.cpp @@ -548,11 +548,9 @@ TEST_F(utglTF2ImportExport, indexOutOfRange) { // The contents of an asset should not lead to an assert. Assimp::Importer importer; - struct LogObserver : Assimp::LogStream - { + struct LogObserver : Assimp::LogStream { bool m_observedWarning = false; - void write(const char *message) override - { + void write(const char *message) override { m_observedWarning = m_observedWarning || std::strstr(message, "faces were dropped"); } }; @@ -562,8 +560,8 @@ TEST_F(utglTF2ImportExport, indexOutOfRange) { const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/glTF2/IndexOutOfRange/IndexOutOfRange.gltf", aiProcess_ValidateDataStructure); ASSERT_NE(scene, nullptr); ASSERT_NE(scene->mRootNode, nullptr); - ASSERT_EQ(scene->mNumMeshes, 1); - EXPECT_EQ(scene->mMeshes[0]->mNumFaces, 11); + ASSERT_EQ(scene->mNumMeshes, 1u); + EXPECT_EQ(scene->mMeshes[0]->mNumFaces, 11u); DefaultLogger::get()->detachStream(&logObserver); EXPECT_TRUE(logObserver.m_observedWarning); }