diff options
| author | gingerBill <bill@gingerbill.org> | 2024-06-29 13:54:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-06-29 13:54:15 +0100 |
| commit | ff2d04231389742e3f78bacc1c5e065d87a180fa (patch) | |
| tree | 00275df09ff619835be00c0ef79316e44a80b63a /base/runtime | |
| parent | 913c08a33e293518b1cfe7fdab55d559ba8042d6 (diff) | |
Remove unneeded `transmute`
Diffstat (limited to 'base/runtime')
| -rw-r--r-- | base/runtime/wasm_allocator.odin | 2 |
1 files changed, 1 insertions, 1 deletions
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. |