diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-03-03 12:04:36 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-03-03 12:04:36 +0100 |
| commit | 96ac40595281f5112aea41618901e0b70a324100 (patch) | |
| tree | 58736b56f5ecc2d0e0b2f9dab83d353a2f4baa1b /core/net/socket_linux.odin | |
| parent | 38d58e818c171761e91ce81a480cca2955fe12bf (diff) | |
Alignment + unnecessary allocator param.
Diffstat (limited to 'core/net/socket_linux.odin')
| -rw-r--r-- | core/net/socket_linux.odin | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/net/socket_linux.odin b/core/net/socket_linux.odin index 4b80ef202..167fb8e7e 100644 --- a/core/net/socket_linux.odin +++ b/core/net/socket_linux.odin @@ -328,12 +328,12 @@ set_option :: proc(s: Any_Socket, option: Socket_Option, value: any, loc := #cal .Send_Buffer_Size: // TODO: check for out of range values and return .Value_Out_Of_Range? switch i in value { - case i8, u8: i2 := i; int_value = os.socklen_t((^u8)(&i2)^) - case i16, u16: i2 := i; int_value = os.socklen_t((^u16)(&i2)^) - case i32, u32: i2 := i; int_value = os.socklen_t((^u32)(&i2)^) - case i64, u64: i2 := i; int_value = os.socklen_t((^u64)(&i2)^) + case i8, u8: i2 := i; int_value = os.socklen_t((^u8)(&i2)^) + case i16, u16: i2 := i; int_value = os.socklen_t((^u16)(&i2)^) + case i32, u32: i2 := i; int_value = os.socklen_t((^u32)(&i2)^) + case i64, u64: i2 := i; int_value = os.socklen_t((^u64)(&i2)^) case i128, u128: i2 := i; int_value = os.socklen_t((^u128)(&i2)^) - case int, uint: i2 := i; int_value = os.socklen_t((^uint)(&i2)^) + case int, uint: i2 := i; int_value = os.socklen_t((^uint)(&i2)^) case: panic("set_option() value must be an integer here", loc) } |