Skip to content

Commit 2b4226c

Browse files
committed
FIX: Add reinterpret_cast to MockLsgServer
1 parent f56aa7c commit 2b4226c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/include/mock/mock_lsg_server.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ class MockLsgServer {
7070

7171
template <typename T>
7272
std::size_t SendBytes(T bytes) {
73-
const auto write_size = ::send(conn_fd_.Get(), &bytes, sizeof(bytes), {});
73+
const auto write_size =
74+
::send(conn_fd_.Get(), reinterpret_cast<const char*>(&bytes),
75+
sizeof(bytes), {});
7476
EXPECT_EQ(write_size, sizeof(bytes)) << ::strerror(errno);
7577
return static_cast<std::size_t>(write_size);
7678
}

0 commit comments

Comments
 (0)