[lldb][NFC] Fix unsigned/signed comparison warning in SymbolFileDWARFTest.cpp
authorRaphael Isemann <teemperor@gmail.com>
Thu, 12 Mar 2020 14:30:10 +0000 (15:30 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Thu, 12 Mar 2020 14:30:11 +0000 (15:30 +0100)
offset_t is unsigned, so if the RHS is signed we get a warning from clang:
    warning: comparison of integers of different signs: 'const unsigned long long' and 'const int'

lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp

index f1010a1..8bf019e 100644 (file)
@@ -344,5 +344,5 @@ TEST_F(SymbolFileDWARFTests, ParseArangesNonzeroSegmentSize) {
   EXPECT_TRUE(bool(error));
   EXPECT_EQ("segmented arange entries are not supported",
             llvm::toString(std::move(error)));
-  EXPECT_EQ(off, 12); // Parser should read no further than the segment size
+  EXPECT_EQ(off, 12U); // Parser should read no further than the segment size
 }