From 4ca829824f7ec18a8adaf1d6b11d07cc2836374d Mon Sep 17 00:00:00 2001 From: Mikhail Tavarez Date: Wed, 24 Apr 2024 14:23:22 -0500 Subject: [PATCH] cleaning up errors --- gojo/net/socket.mojo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gojo/net/socket.mojo b/gojo/net/socket.mojo index d48ee44..594cc23 100644 --- a/gojo/net/socket.mojo +++ b/gojo/net/socket.mojo @@ -348,7 +348,7 @@ struct Socket(FileDescriptorBase): src: The data to send. max_attempts: The maximum number of attempts to send the data. """ - var header_pointer = Pointer[Int8](src.data.value).bitcast[UInt8]() + var header_pointer = Pointer[Int8](src.data.address).bitcast[UInt8]() var total_bytes_sent = 0 var attempts = 0 @@ -377,7 +377,7 @@ struct Socket(FileDescriptorBase): address: The IP address to connect to. port: The port number to connect to. """ - var header_pointer = Pointer[Int8](src.data.value).bitcast[UInt8]() + var header_pointer = Pointer[Int8](src.data.address).bitcast[UInt8]() self.connect(address, port) var bytes_written: Int var err: Error