mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
dlmalloc: fix warning about fixed arrays of references, by using unsafe{}
This commit is contained in:
parent
bd4e9f6225
commit
5e0899853b
@ -243,8 +243,8 @@ pub fn new(system_allocator Allocator) Dlmalloc {
|
|||||||
return Dlmalloc{
|
return Dlmalloc{
|
||||||
smallmap: 0
|
smallmap: 0
|
||||||
treemap: 0
|
treemap: 0
|
||||||
smallbins: [(dlmalloc.n_small_bins + 1) * 2]&Chunk{}
|
smallbins: unsafe { [(dlmalloc.n_small_bins + 1) * 2]&Chunk{} }
|
||||||
treebins: [dlmalloc.n_tree_bins]&TreeChunk{}
|
treebins: unsafe { [dlmalloc.n_tree_bins]&TreeChunk{} }
|
||||||
dvsize: 0
|
dvsize: 0
|
||||||
topsize: 0
|
topsize: 0
|
||||||
dv: voidptr(0)
|
dv: voidptr(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user