Fix Travis CI sign-compare warning

EXPECT_* triggers sign compare error with literal 0 and unsigned
Use 0u literal with size_t
pull/2566/head
RichardTea 2019-07-26 09:10:09 +01:00
parent 7e8a3ec4cb
commit 72e18ed4aa
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ TEST_F(ExporterTest, ProgressHandlerTest) {
TEST_F(ExporterTest, ExporterIdTest) { TEST_F(ExporterTest, ExporterIdTest) {
Exporter exporter; Exporter exporter;
size_t exportFormatCount = exporter.GetExportFormatCount(); size_t exportFormatCount = exporter.GetExportFormatCount();
EXPECT_NE(0, exportFormatCount) << "No registered exporters"; EXPECT_NE(0u, exportFormatCount) << "No registered exporters";
typedef std::map<std::string, const aiExportFormatDesc*> ExportIdMap; typedef std::map<std::string, const aiExportFormatDesc*> ExportIdMap;
ExportIdMap exporterMap; ExportIdMap exporterMap;
for (size_t i = 0; i < exportFormatCount; ++i) for (size_t i = 0; i < exportFormatCount; ++i)