Skip to content

Commit ac7e79f

Browse files
authored
dlmalloc: fix WASM codegen bug (#13090)
1 parent 95f6bd7 commit ac7e79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/dlmalloc/dlmalloc.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ fn (mut dl Dlmalloc) sys_trim(pad_ usize) bool {
684684
if pad < dl.max_request && !isnil(dl.top) {
685685
pad += top_foot_size()
686686
if dl.topsize > pad {
687-
unit := usize(default_granularity)
687+
unit := usize(default_granularity())
688688
extra := ((dl.topsize - pad + unit - 1) / unit - 1) * unit
689689
mut sp := dl.segment_holding(dl.top)
690690

0 commit comments

Comments
 (0)