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:
00764c3
)
[lldb][NFC] Fix unsigned/signed cmp warning in MainLoopTest
author
Raphael Isemann
<teemperor@gmail.com>
Thu, 22 Apr 2021 10:19:15 +0000
(12:19 +0200)
committer
Raphael Isemann
<teemperor@gmail.com>
Thu, 22 Apr 2021 10:20:32 +0000
(12:20 +0200)
The gtest checks compare all against unsigned int constants so this also needs
to be unsigned.
lldb/unittests/Host/MainLoopTest.cpp
patch
|
blob
|
history
diff --git
a/lldb/unittests/Host/MainLoopTest.cpp
b/lldb/unittests/Host/MainLoopTest.cpp
index
50a49b9
..
890f6eb
100644
(file)
--- a/
lldb/unittests/Host/MainLoopTest.cpp
+++ b/
lldb/unittests/Host/MainLoopTest.cpp
@@
-158,8
+158,8
@@
TEST_F(MainLoopTest, UnmonitoredSignal) {
TEST_F(MainLoopTest, TwoSignalCallbacks) {
MainLoop loop;
Status error;
-
int
callback2_count = 0;
-
int
callback3_count = 0;
+
unsigned
callback2_count = 0;
+
unsigned
callback3_count = 0;
auto handle = loop.RegisterSignal(SIGUSR1, make_callback(), error);
ASSERT_TRUE(error.Success());