1
0
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:
Delyan Angelov 2022-07-16 16:37:20 +03:00
parent bd4e9f6225
commit 5e0899853b
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -243,8 +243,8 @@ pub fn new(system_allocator Allocator) Dlmalloc {
return Dlmalloc{
smallmap: 0
treemap: 0
smallbins: [(dlmalloc.n_small_bins + 1) * 2]&Chunk{}
treebins: [dlmalloc.n_tree_bins]&TreeChunk{}
smallbins: unsafe { [(dlmalloc.n_small_bins + 1) * 2]&Chunk{} }
treebins: unsafe { [dlmalloc.n_tree_bins]&TreeChunk{} }
dvsize: 0
topsize: 0
dv: voidptr(0)