diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-06-28 21:03:24 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-06-28 21:03:24 +0000 |
commit | a1f629c4cf4a6353110281a7458cab73ab27460a (patch) | |
tree | 5ad7bdded41bbcac7d0b8488e93027405bf508bd /llvm/unittests/Support/FileOutputBufferTest.cpp | |
parent | d512853aa3cfd2fe5451f854ab8ba742ac9fe39b (diff) | |
download | bcm5719-llvm-a1f629c4cf4a6353110281a7458cab73ab27460a.tar.gz bcm5719-llvm-a1f629c4cf4a6353110281a7458cab73ab27460a.zip |
[SupportTests] Silence -Wsign-compare warnings
llvm-svn: 335921
Diffstat (limited to 'llvm/unittests/Support/FileOutputBufferTest.cpp')
-rw-r--r-- | llvm/unittests/Support/FileOutputBufferTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/FileOutputBufferTest.cpp b/llvm/unittests/Support/FileOutputBufferTest.cpp index 16fe01dd0b0..554859587d4 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<FileOutputBuffer> &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<std::unique_ptr<MemoryBuffer>> BufferOrErr = MemoryBuffer::getFile(File1); ASSERT_NO_ERROR(BufferOrErr.getError()); std::unique_ptr<MemoryBuffer> Buffer = std::move(*BufferOrErr); - ASSERT_EQ(10, Buffer->getBufferSize()); + ASSERT_EQ(10U, Buffer->getBufferSize()); EXPECT_EQ(StringRef("XAAAAAAAAX"), Buffer->getBuffer()); } |