aboutsummaryrefslogtreecommitdiff
path: root/base/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-06-29 13:54:15 +0100
committergingerBill <bill@gingerbill.org>2024-06-29 13:54:15 +0100
commitff2d04231389742e3f78bacc1c5e065d87a180fa (patch)
tree00275df09ff619835be00c0ef79316e44a80b63a /base/runtime
parent913c08a33e293518b1cfe7fdab55d559ba8042d6 (diff)
Remove unneeded `transmute`
Diffstat (limited to 'base/runtime')
-rw-r--r--base/runtime/wasm_allocator.odin2
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.