mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 16:56:35 +00:00
[lldb] Fix -Wsign-compare in TestSectionSize.cpp (NFC)
In file included from /data/workspace/llvm-project/lldb/unittests/ObjectFile/PECOFF/TestSectionSize.cpp:10: /data/workspace/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1620:28: error: comparison of integers of different signs: 'c onst unsigned long' and 'const int' [-Werror,-Wsign-compare] GTEST_IMPL_CMP_HELPER_(NE, !=); ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
This commit is contained in:
parent
34fe58e0bc
commit
a330759d6e
@ -69,10 +69,10 @@ symbols: []
|
||||
DataExtractor section_data;
|
||||
ASSERT_NE(object_file->ReadSectionData(swiftast_section.get(),
|
||||
section_data),
|
||||
0);
|
||||
(size_t)0);
|
||||
|
||||
// Check that the section data size is equal to VirtualSize (496)
|
||||
// without the zero padding, instead of SizeOfRawData (512).
|
||||
EXPECT_EQ(section_data.GetByteSize(), 496);
|
||||
EXPECT_EQ(section_data.GetByteSize(), (uint64_t)496);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user