Browse Source

Remove unneeded `transmute`

gingerBill 1 year ago
parent
commit
ff2d042313
1 changed files with 1 additions and 1 deletions
  1. 1 1
      base/runtime/wasm_allocator.odin

+ 1 - 1
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.
 		// we can just extend the spill.
 		spill_end := uintptr(raw_data(a.spill)) + uintptr(len(a.spill))
 		spill_end := uintptr(raw_data(a.spill)) + uintptr(len(a.spill))
 		if spill_end == uintptr(raw_data(allocated)) {
 		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)
 			raw_spill.len += len(allocated)
 		} else {
 		} else {
 			// Otherwise, we have to "waste" the previous spill.
 			// Otherwise, we have to "waste" the previous spill.