aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-10-15 12:32:20 -0700
committerKazu Hirata <kazu@google.com>2022-10-15 12:32:20 -0700
commit39f01240e76678fa6385d36e7a96670677a26d65 (patch)
tree31be1b44ee7674061151f06c9d4f7de80beb0af0 /lldb/source/Commands/CommandObjectThread.cpp
parent988025adc703eb1bf8db46665925464328dd60aa (diff)
downloadllvm-39f01240e76678fa6385d36e7a96670677a26d65.zip
llvm-39f01240e76678fa6385d36e7a96670677a26d65.tar.gz
llvm-39f01240e76678fa6385d36e7a96670677a26d65.tar.bz2
[lldb] Fix a warning
This patch fixes: lldb/source/Commands/CommandObjectThread.cpp:66:61: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp2
1 files changed, 1 insertions, 1 deletions
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);