From: Jonas Devlieghere Date: Tue, 21 Jul 2020 04:43:17 +0000 (-0700) Subject: [lldb] fix warnings in TestOptionValueFileColonLine.cpp X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=138244f099063517f8de37087d61a9005d40b95f;p=platform%2Fupstream%2Fllvm.git [lldb] fix warnings in TestOptionValueFileColonLine.cpp --- diff --git a/lldb/unittests/Interpreter/TestOptionValueFileColonLine.cpp b/lldb/unittests/Interpreter/TestOptionValueFileColonLine.cpp index e5b2c77..54e3133 100644 --- a/lldb/unittests/Interpreter/TestOptionValueFileColonLine.cpp +++ b/lldb/unittests/Interpreter/TestOptionValueFileColonLine.cpp @@ -14,8 +14,8 @@ using namespace lldb_private; void CheckSetting(const char *input, bool success, const char *path = nullptr, - uint32_t line_number = LLDB_INVALID_ADDRESS, - uint32_t column_number = 0) { + uint32_t line_number = LLDB_INVALID_LINE_NUMBER, + uint32_t column_number = LLDB_INVALID_COLUMN_NUMBER) { OptionValueFileColonLine value; Status error; @@ -38,8 +38,10 @@ TEST(OptionValueFileColonLine, setFromString) { Status error; // Make sure a default constructed value is invalid: - ASSERT_EQ(value.GetLineNumber(), LLDB_INVALID_LINE_NUMBER); - ASSERT_EQ(value.GetColumnNumber(), 0); + ASSERT_EQ(value.GetLineNumber(), + static_cast(LLDB_INVALID_LINE_NUMBER)); + ASSERT_EQ(value.GetColumnNumber(), + static_cast(LLDB_INVALID_COLUMN_NUMBER)); ASSERT_FALSE(value.GetFileSpec()); // Make sure it is an error to pass a specifier with no line number: