Skip to content

Commit

Permalink
ci: fix warnings in `v -cc gcc -keepc -freestanding -o bel vlib/os/ba…
Browse files Browse the repository at this point in the history
…re/bare_example_linux.v`
  • Loading branch information
spytheman committed Jan 6, 2023
1 parent 2119a24 commit 725456c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/dlmalloc/dlmalloc.v
Expand Up @@ -385,7 +385,7 @@ fn chunk_from_mem(mem_ voidptr) &Chunk {
}

fn (tree &TreeChunk) leftmost_child() &TreeChunk {
left := &TreeChunk(tree.child[0])
left := unsafe { &TreeChunk(tree.child[0]) }
if isnil(left) {
return tree.child[1]
} else {
Expand Down Expand Up @@ -1547,7 +1547,7 @@ fn (mut dl Dlmalloc) mmap_resize(oldp_ &Chunk, nb usize, can_move bool) &Chunk {
return unsafe { nil }
}

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

0 comments on commit 725456c

Please sign in to comment.