Skip to content

Commit 5f88f0c

Browse files
[lldb] Fix a warning
This patch fixes: third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned int' and 'const int' [-Werror,-Wsign-compare]
1 parent 52cb953 commit 5f88f0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ TEST_F(DWARFASTParserClangTests, TestPtrAuthParsing) {
417417
lldb::TypeSP type_sp =
418418
ast_parser.ParseTypeFromDWARF(sc, ptrauth_type, &new_type);
419419
CompilerType compiler_type = type_sp->GetForwardCompilerType();
420-
ASSERT_EQ(compiler_type.GetPtrAuthKey(), 0);
420+
ASSERT_EQ(compiler_type.GetPtrAuthKey(), 0U);
421421
ASSERT_EQ(compiler_type.GetPtrAuthAddressDiversity(), false);
422-
ASSERT_EQ(compiler_type.GetPtrAuthDiscriminator(), 42);
422+
ASSERT_EQ(compiler_type.GetPtrAuthDiscriminator(), 42U);
423423
}
424424

425425
struct ExtractIntFromFormValueTest : public testing::Test {

0 commit comments

Comments
 (0)