From 0112bbceb82f580a617d5a819b15f8fb419f0b77 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Tue, 5 Dec 2017 10:35:11 +0000 Subject: [PATCH] Fix build bot after r319750 "[Support/TarWriter] - Don't allow TarWriter to add the same file more than once." Error was: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare] http://lab.llvm.org:8011/builders/ubuntu-gcc7.1-werror/builds/3469/steps/build-unified-tree/logs/stdio http://lab.llvm.org:8011/builders/clang-with-thin-lto-ubuntu/builds/7118/steps/build-stage2-compiler/logs/stdio git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319752 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/TarWriterTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittests/Support/TarWriterTest.cpp b/unittests/Support/TarWriterTest.cpp index 548efcade93..901dd906ca7 100644 --- a/unittests/Support/TarWriterTest.cpp +++ b/unittests/Support/TarWriterTest.cpp @@ -136,7 +136,7 @@ TEST_F(TarWriterTest, SingleFile) { uint64_t TarSize; EC = sys::fs::file_size(Path, TarSize); EXPECT_FALSE((bool)EC); - EXPECT_EQ(TarSize, 2048); + EXPECT_EQ(TarSize, 2048ULL); } TEST_F(TarWriterTest, NoDuplicate) { @@ -155,7 +155,7 @@ TEST_F(TarWriterTest, NoDuplicate) { uint64_t TarSize; EC = sys::fs::file_size(Path, TarSize); EXPECT_FALSE((bool)EC); - EXPECT_EQ(TarSize, 3072); + EXPECT_EQ(TarSize, 3072ULL); } TEST_F(TarWriterTest, Duplicate) { @@ -174,6 +174,6 @@ TEST_F(TarWriterTest, Duplicate) { uint64_t TarSize; EC = sys::fs::file_size(Path, TarSize); EXPECT_FALSE((bool)EC); - EXPECT_EQ(TarSize, 2048); + EXPECT_EQ(TarSize, 2048ULL); } } // namespace -- 2.50.1