1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix dlmalloc again (workaround vfmt)

This commit is contained in:
Delyan Angelov 2022-07-21 21:21:20 +03:00
parent e29f6d1393
commit ed43bfc469
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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 {