From e040039efd0e9900740f94454ebc768ea5ef4087 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Fri, 20 Oct 2023 16:58:23 +0200 Subject: [PATCH] Avoid warning when comparing signed and unsigned int. --- test/archive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/archive.cpp b/test/archive.cpp index 55e520e14..955b55a3d 100644 --- a/test/archive.cpp +++ b/test/archive.cpp @@ -106,8 +106,8 @@ TEST(ZimArchive, openingAnEmptyZimArchiveSucceeds) zim::Archive archive(tmpfile->path()); ASSERT_TRUE(archive.check()); - ASSERT_EQ(archive.getMediaCount(), 0); - ASSERT_EQ(archive.getArticleCount(), 0); + ASSERT_EQ(archive.getMediaCount(), 0U); + ASSERT_EQ(archive.getArticleCount(), 0U); } bool isNastyOffset(int offset) {