From 5c02bed297c43093bc2bdbaa8984abd2c9f1c2ae Mon Sep 17 00:00:00 2001 From: Trent Houliston Date: Tue, 26 Sep 2023 15:53:32 +1000 Subject: [PATCH] windows is the worst --- src/extension/network/NUClearNetwork.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/extension/network/NUClearNetwork.cpp b/src/extension/network/NUClearNetwork.cpp index 0f92639fe..4a49886a1 100644 --- a/src/extension/network/NUClearNetwork.cpp +++ b/src/extension/network/NUClearNetwork.cpp @@ -534,7 +534,7 @@ namespace extension { // Send the packet if (::sendto(data_fd, - announce_packet.data(), + reinterpret_cast(announce_packet.data()), static_cast(announce_packet.size()), 0, &it->second->target.sock, @@ -595,7 +595,7 @@ namespace extension { // Say hi back! ::sendto(data_fd, - announce_packet.data(), + reinterpret_cast(announce_packet.data()), static_cast(announce_packet.size()), 0, &ptr->target.sock, @@ -688,7 +688,7 @@ namespace extension { // Send the packet ::sendto(data_fd, - r.data(), + reinterpret_cast(r.data()), static_cast(r.size()), 0, &to.sock, @@ -771,7 +771,7 @@ namespace extension { // Send the packet ::sendto(data_fd, - r.data(), + reinterpret_cast(r.data()), static_cast(r.size()), 0, &to.sock, @@ -807,7 +807,7 @@ namespace extension { // Send the packet ::sendto(data_fd, - r.data(), + reinterpret_cast(r.data()), static_cast(r.size()), 0, &to.sock,