diff --git a/test/src/mock_lsg_server.cpp b/test/src/mock_lsg_server.cpp index da2f448..779cd6a 100644 --- a/test/src/mock_lsg_server.cpp +++ b/test/src/mock_lsg_server.cpp @@ -28,7 +28,8 @@ void SocketStream::WriteAll(const std::uint8_t* buffer, std::size_t length) { constexpr int MSG_NOSIGNAL = {}; #endif // Don't send a SIGPIPE if the connection is closed - last_write_size_ = ::send(socket_, buffer, length, MSG_NOSIGNAL); + last_write_size_ = ::send(socket_, reinterpret_cast(buffer), + length, MSG_NOSIGNAL); } using databento::test::mock::MockLsgServer;