From ff2d04231389742e3f78bacc1c5e065d87a180fa Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 29 Jun 2024 13:54:15 +0100 Subject: [PATCH] Remove unneeded `transmute` --- base/runtime/wasm_allocator.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/runtime/wasm_allocator.odin b/base/runtime/wasm_allocator.odin index 6bca0b3d6..366dc2e44 100644 --- a/base/runtime/wasm_allocator.odin +++ b/base/runtime/wasm_allocator.odin @@ -495,7 +495,7 @@ claim_more_memory :: proc(a: ^WASM_Allocator, num_bytes: uint) -> bool { // we can just extend the spill. spill_end := uintptr(raw_data(a.spill)) + uintptr(len(a.spill)) if spill_end == uintptr(raw_data(allocated)) { - raw_spill := transmute(^Raw_Slice)(&a.spill) + raw_spill := (^Raw_Slice)(&a.spill) raw_spill.len += len(allocated) } else { // Otherwise, we have to "waste" the previous spill.