Skip to content

Commit

Permalink
Fix some windows errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-attack committed Feb 15, 2025
1 parent ab3c7be commit 6009673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pubsub/TCPTransport.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ int ps_tcp_transport_spin(struct ps_transport_t* transport, struct ps_node_t* no
while (client->queued_message != 0)
{
int to_send = client->queued_message_length - client->queued_message_written;
uint8_t* data = (uint8_t*)client->queued_message->data;
char* data = (char*)client->queued_message->data;
int sent = send(client->socket, &data[client->queued_message_written], to_send, 0);
if (sent > 0)
{
Expand Down Expand Up @@ -667,7 +667,7 @@ void ps_tcp_transport_pub(struct ps_transport_t* transport, struct ps_pub_t* pub

int32_t desired_len = sizeof(struct ps_msg_header) + length;
//printf("trying to send message of %i bytes\n", desired_len);
int32_t c = send(socket, message, desired_len, 0);
int32_t c = send(socket, (char*)message, desired_len, 0);
if (c < desired_len && c >= 0)
{
tclient->queued_message_written = c;
Expand Down

0 comments on commit 6009673

Please sign in to comment.