Skip to content

Commit 725456c

Browse files
committed
ci: fix warnings in v -cc gcc -keepc -freestanding -o bel vlib/os/bare/bare_example_linux.v
1 parent 2119a24 commit 725456c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vlib/dlmalloc/dlmalloc.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ fn chunk_from_mem(mem_ voidptr) &Chunk {
385385
}
386386

387387
fn (tree &TreeChunk) leftmost_child() &TreeChunk {
388-
left := &TreeChunk(tree.child[0])
388+
left := unsafe { &TreeChunk(tree.child[0]) }
389389
if isnil(left) {
390390
return tree.child[1]
391391
} else {
@@ -1547,7 +1547,7 @@ fn (mut dl Dlmalloc) mmap_resize(oldp_ &Chunk, nb usize, can_move bool) &Chunk {
15471547
return unsafe { nil }
15481548
}
15491549

1550-
mut newp := &Chunk(voidptr(usize(ptr) + offset))
1550+
mut newp := unsafe { &Chunk(voidptr(usize(ptr) + offset)) }
15511551
psize := newmmsize - offset - mmap_foot_pad()
15521552
newp.head = psize
15531553
newp.plus_offset(psize).head = fencepost_head()

0 commit comments

Comments
 (0)