[lldb][NFC] Fix unsigned/signed cmp warning in MainLoopTest
authorRaphael Isemann <teemperor@gmail.com>
Thu, 22 Apr 2021 10:19:15 +0000 (12:19 +0200)
committerRaphael 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

index 50a49b9..890f6eb 100644 (file)
@@ -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());