[Lldb-commits] [lldb] 04f13da - [lldb] Fix compiler warning in CommunicationTest
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 18 01:31:43 PST 2022
Author: Pavel Labath
Date: 2022-01-18T10:31:37+01:00
New Revision: 04f13da677d11f447e6332cf3171f5f1547d01a3
URL: https://github.com/llvm/llvm-project/commit/04f13da677d11f447e6332cf3171f5f1547d01a3
DIFF: https://github.com/llvm/llvm-project/commit/04f13da677d11f447e6332cf3171f5f1547d01a3.diff
LOG: [lldb] Fix compiler warning in CommunicationTest
"0x80 changes value when converted to char"
Added:
Modified:
lldb/unittests/Core/CommunicationTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Core/CommunicationTest.cpp b/lldb/unittests/Core/CommunicationTest.cpp
index c9aba8bb1f1a8..bb57a7b14670f 100644
--- a/lldb/unittests/Core/CommunicationTest.cpp
+++ b/lldb/unittests/Core/CommunicationTest.cpp
@@ -76,7 +76,7 @@ TEST(CommunicationTest, WriteAll) {
// Write 1 MiB of data into the pipe.
lldb::ConnectionStatus conn_status;
Status error;
- std::vector<char> data(1024 * 1024, 0x80);
+ std::vector<uint8_t> data(1024 * 1024, 0x80);
EXPECT_EQ(write_comm.WriteAll(data.data(), data.size(), conn_status, &error),
data.size());
EXPECT_EQ(conn_status, lldb::eConnectionStatusSuccess);
More information about the lldb-commits
mailing list