From 39f01240e76678fa6385d36e7a96670677a26d65 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 15 Oct 2022 12:32:20 -0700 Subject: [PATCH] [lldb] Fix a warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch fixes: lldb/source/Commands/CommandObjectThread.cpp:66:61: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits] --- lldb/source/Commands/CommandObjectThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 7b739fe..2a22900 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -63,7 +63,7 @@ public: switch (short_option) { case 'c': - if (option_arg.getAsInteger(0, m_count) || (m_count < 0)) { + if (option_arg.getAsInteger(0, m_count)) { m_count = UINT32_MAX; error.SetErrorStringWithFormat( "invalid integer value for option '%c'", short_option); -- 2.7.4