mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
dlmalloc: fix notice for ambiguous expression with both >> and & (#21539)
This commit is contained in:
parent
f3624d58cf
commit
0963069b98
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ fn (dl &Dlmalloc) compute_tree_index(size usize) u32 {
|
||||||
return dlmalloc.n_tree_bins - 1
|
return dlmalloc.n_tree_bins - 1
|
||||||
} else {
|
} else {
|
||||||
k := sizeof(usize) * 8 - 1 - usize_leading_zeros(x)
|
k := sizeof(usize) * 8 - 1 - usize_leading_zeros(x)
|
||||||
return u32((k << 1) + (size >> (k + dlmalloc.tree_bin_shift - 1) & 1))
|
return u32((k << 1) + ((size >> (k + dlmalloc.tree_bin_shift - 1)) & 1))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue