Skip to content

Commit 06d78ba

Browse files
[lldb] Fix warnings
This patch fixes: third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare]
1 parent 61a969b commit 06d78ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/unittests/Host/SocketTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ TEST_F(SocketTest, CreatePair) {
9090
Socket &b = *expected_socket_pair->second;
9191
size_t num_bytes = 1;
9292
ASSERT_THAT_ERROR(a.Write("a", num_bytes).takeError(), llvm::Succeeded());
93-
ASSERT_EQ(num_bytes, 1);
93+
ASSERT_EQ(num_bytes, 1U);
9494
char c;
9595
ASSERT_THAT_ERROR(b.Read(&c, num_bytes).takeError(), llvm::Succeeded());
96-
ASSERT_EQ(num_bytes, 1);
96+
ASSERT_EQ(num_bytes, 1U);
9797
ASSERT_EQ(c, 'a');
9898
}
9999

0 commit comments

Comments
 (0)