]> granicus.if.org Git - llvm/commitdiff
Fix build bot after r319750 "[Support/TarWriter] - Don't allow TarWriter to add the...
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 5 Dec 2017 10:35:11 +0000 (10:35 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 5 Dec 2017 10:35:11 +0000 (10:35 +0000)
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

index 548efcade936984d15b0f9c404ed62b28f4bb6d2..901dd906ca78ae1062d2f64e7646f800506459df 100644 (file)
@@ -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