projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64104db
)
[lldb] [netbsd] Avoid comparison of signed and unsigned integers
author
Kamil Rytarowski
<n54@gmx.com>
Thu, 10 Sep 2020 10:45:24 +0000
(12:45 +0200)
committer
Kamil Rytarowski
<n54@gmx.com>
Thu, 10 Sep 2020 13:49:15 +0000
(15:49 +0200)
Cast ProcessID to ::pid_t.
lldb/source/Host/netbsd/HostNetBSD.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Host/netbsd/HostNetBSD.cpp
b/lldb/source/Host/netbsd/HostNetBSD.cpp
index
4708fb4
..
38e2aa5
100644
(file)
--- a/
lldb/source/Host/netbsd/HostNetBSD.cpp
+++ b/
lldb/source/Host/netbsd/HostNetBSD.cpp
@@
-220,7
+220,7
@@
uint32_t Host::FindProcessesImpl(const ProcessInstanceInfoMatch &match_info,
if (proc_kinfo[i].p_nlwps > 1) {
bool already_registered = false;
for (size_t pi = 0; pi < process_infos.size(); pi++) {
- if (process_infos[pi].GetProcessID() == proc_kinfo[i].p_pid) {
+ if (
(::pid_t)
process_infos[pi].GetProcessID() == proc_kinfo[i].p_pid) {
already_registered = true;
break;
}