Skip to content

Commit a330759

Browse files
committed
[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, !=); ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
1 parent 34fe58e commit a330759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/unittests/ObjectFile/PECOFF/TestSectionSize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ symbols: []
6969
DataExtractor section_data;
7070
ASSERT_NE(object_file->ReadSectionData(swiftast_section.get(),
7171
section_data),
72-
0);
72+
(size_t)0);
7373

7474
// Check that the section data size is equal to VirtualSize (496)
7575
// without the zero padding, instead of SizeOfRawData (512).
76-
EXPECT_EQ(section_data.GetByteSize(), 496);
76+
EXPECT_EQ(section_data.GetByteSize(), (uint64_t)496);
7777
}
7878

0 commit comments

Comments
 (0)