From ed43bfc469d21a7aecd644ea487f27116f27d764 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 21 Jul 2022 21:21:20 +0300 Subject: [PATCH] ci: fix dlmalloc again (workaround vfmt) --- vlib/dlmalloc/dlmalloc.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/dlmalloc/dlmalloc.v b/vlib/dlmalloc/dlmalloc.v index a79629a5e..202fafa93 100644 --- a/vlib/dlmalloc/dlmalloc.v +++ b/vlib/dlmalloc/dlmalloc.v @@ -1189,7 +1189,7 @@ fn (mut dl Dlmalloc) tmalloc_large(size usize) voidptr { mut t := *dl.treebin_at(idx) if !isnil(t) { mut sizebits := size << leftshift_for_tree_index(idx) - mut rst := voidptr(0) + mut rst := voidptr(u64(0)) for { csize := t.chunk().size() if csize >= size && csize - size < rsize { @@ -1412,7 +1412,7 @@ pub fn (mut dl Dlmalloc) memalign(alignment_ usize, bytes usize) voidptr { // we've allocated enough total room so that this is always possible br_ := (usize(mem) + alignment - 1) & (~alignment + 1) br := chunk_from_mem(voidptr(br_)) - mut pos := voidptr(0) + mut pos := voidptr(u64(0)) if usize(br) - usize(p) > min_chunk_size() { pos = voidptr(br) } else { -- 2.30.2