mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-02 01:34:38 +03:00
add cast to avoid errors on clang 7
This commit is contained in:
parent
bbcbd3cd1f
commit
f28d5c7029
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ typedef mi_decl_align(MI_BCHUNK_SIZE) struct mi_bitmap_s {
|
||||||
|
|
||||||
|
|
||||||
static inline size_t mi_bitmap_chunk_count(const mi_bitmap_t* bitmap) {
|
static inline size_t mi_bitmap_chunk_count(const mi_bitmap_t* bitmap) {
|
||||||
return mi_atomic_load_relaxed(&bitmap->chunk_count);
|
return mi_atomic_load_relaxed(&((mi_bitmap_t*)bitmap)->chunk_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline size_t mi_bitmap_max_bits(const mi_bitmap_t* bitmap) {
|
static inline size_t mi_bitmap_max_bits(const mi_bitmap_t* bitmap) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue