Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
l1mey112 committed Oct 28, 2023
1 parent ea1325c commit bd9e111
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 5 additions & 9 deletions vlib/builtin/wasm/builtin.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module builtin

// vwasm_heap_base returns the base address of the heap.
pub fn vwasm_heap_base() voidptr {
mut rval := voidptr(0)
mut rval := unsafe { nil }
asm wasm {
global.get __heap_base
local.set rval
Expand Down Expand Up @@ -55,8 +55,7 @@ pub fn vcalloc(n isize) &u8 {
i32.const 0x0
local.get n
memory.fill
;
; r (res)
; ; r (res)
r (n)
}

Expand All @@ -78,8 +77,7 @@ pub fn vmemcpy(dest voidptr, const_src voidptr, n isize) voidptr {
local.get const_src
local.get n
memory.copy
;
; r (dest)
; ; r (dest)
r (const_src)
r (n)
}
Expand All @@ -95,8 +93,7 @@ pub fn vmemmove(dest voidptr, const_src voidptr, n isize) voidptr {
local.get const_src
local.get n
memory.copy
;
; r (dest)
; ; r (dest)
r (const_src)
r (n)
}
Expand All @@ -112,8 +109,7 @@ pub fn vmemset(s voidptr, c int, n isize) voidptr {
local.get c
local.get n
memory.fill
;
; r (s)
; ; r (s)
r (c)
r (n)
}
Expand Down
1 change: 0 additions & 1 deletion vlib/wasm/instructions.v
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,6 @@ pub fn (mut func Function) cast_trapping(a NumType, is_signed bool, b NumType) {
else {}
}
}

}
}

Expand Down

0 comments on commit bd9e111

Please sign in to comment.