llvm.org GIT mirror llvm / c9edd42
[Support] Pacify -Wsign-compare in unit test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327070 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
276276 // Write some data. It should be mapped readwrite, so that upon completion
277277 // the original file contents are modified.
278278 WriteThroughMemoryBuffer &MB = **MBOrError;
279 ASSERT_EQ(16, MB.getBufferSize());
279 ASSERT_EQ(16u, MB.getBufferSize());
280280 char *Start = MB.getBufferStart();
281281 ASSERT_EQ(MB.getBufferEnd(), MB.getBufferStart() + MB.getBufferSize());
282282 ::memset(Start, 'x', MB.getBufferSize());
285285 auto MBOrError = MemoryBuffer::getFile(TestPath);
286286 ASSERT_FALSE(MBOrError.getError());
287287 auto &MB = **MBOrError;
288 ASSERT_EQ(16, MB.getBufferSize());
288 ASSERT_EQ(16u, MB.getBufferSize());
289289 EXPECT_EQ("xxxxxxxxxxxxxxxx", MB.getBuffer());
290290 }
291291 }