diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-06-28 22:49:48 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-06-28 23:14:03 -0400 |
| commit | b3caae6db4da4b604d5812d587b773674d72ccf3 (patch) | |
| tree | 58f77f0adbb571417c48032363b72d83c50f4a52 | |
| parent | 6496432b8056eeecd9ba396148f7c458a5cc02ac (diff) | |
Keep `-vet` happy
| -rw-r--r-- | core/encoding/uuid/generation.odin | 4 | ||||
| -rw-r--r-- | core/flags/internal_rtti.odin | 2 | ||||
| -rw-r--r-- | core/os/os_darwin.odin | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/core/encoding/uuid/generation.odin b/core/encoding/uuid/generation.odin index cf29df378..7c9d4b80c 100644 --- a/core/encoding/uuid/generation.odin +++ b/core/encoding/uuid/generation.odin @@ -106,8 +106,8 @@ generate_v6 :: proc(clock_seq: Maybe(u16) = nil, node: Maybe([6]u8) = nil, times temporary: [2]u8 bytes_generated := rand.read(temporary[:]) assert(bytes_generated == 2, "RNG failed to generate 2 bytes for UUID v1.") - result[8] |= cast(u8)temporary[0] & 0x3F - result[9] = cast(u8)temporary[1] + result[8] |= temporary[0] & 0x3F + result[9] = temporary[1] } if realized_node, ok := node.?; ok { diff --git a/core/flags/internal_rtti.odin b/core/flags/internal_rtti.odin index c9b1f59fd..f19f52ba5 100644 --- a/core/flags/internal_rtti.odin +++ b/core/flags/internal_rtti.odin @@ -184,7 +184,7 @@ parse_and_set_pointer_by_base_type :: proc(ptr: rawptr, str: string, type_info: case 16: (cast(^u16) ptr)^ = cast(u16) value case 32: (cast(^u32) ptr)^ = cast(u32) value case 64: (cast(^u64) ptr)^ = cast(u64) value - case 128: (cast(^u128) ptr)^ = cast(u128) value + case 128: (cast(^u128) ptr)^ = value } } diff --git a/core/os/os_darwin.odin b/core/os/os_darwin.odin index 877a90bf1..b1fde77b3 100644 --- a/core/os/os_darwin.odin +++ b/core/os/os_darwin.odin @@ -555,7 +555,7 @@ open :: proc(path: string, flags: int = O_RDWR, mode: int = 0) -> (Handle, Errno err := fchmod(handle, cast(u16)mode) if err != 0 { _unix_close(handle) - return INVALID_HANDLE, cast(Errno)err + return INVALID_HANDLE, err } } |