From: Benjamin Kramer Date: Thu, 28 Jun 2018 21:03:24 +0000 (+0000) Subject: [SupportTests] Silence -Wsign-compare warnings X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1f629c4cf4a6353110281a7458cab73ab27460a;p=platform%2Fupstream%2Fllvm.git [SupportTests] Silence -Wsign-compare warnings llvm-svn: 335921 --- diff --git a/llvm/unittests/Support/FileOutputBufferTest.cpp b/llvm/unittests/Support/FileOutputBufferTest.cpp index 16fe01d..5548595 100644 --- a/llvm/unittests/Support/FileOutputBufferTest.cpp +++ b/llvm/unittests/Support/FileOutputBufferTest.cpp @@ -149,7 +149,7 @@ TEST(FileOutputBuffer, TestModify) { FileOutputBuffer::create(File1, size_t(-1), FileOutputBuffer::F_modify); ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError())); std::unique_ptr &Buffer = *BufferOrErr; - ASSERT_EQ(10, Buffer->getBufferSize()); + ASSERT_EQ(10U, Buffer->getBufferSize()); uint8_t *Data = Buffer->getBufferStart(); Data[0] = 'X'; Data[9] = 'X'; @@ -162,7 +162,7 @@ TEST(FileOutputBuffer, TestModify) { ErrorOr> BufferOrErr = MemoryBuffer::getFile(File1); ASSERT_NO_ERROR(BufferOrErr.getError()); std::unique_ptr Buffer = std::move(*BufferOrErr); - ASSERT_EQ(10, Buffer->getBufferSize()); + ASSERT_EQ(10U, Buffer->getBufferSize()); EXPECT_EQ(StringRef("XAAAAAAAAX"), Buffer->getBuffer()); }