mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
fix assertion
This commit is contained in:
parent
1568dbb9e4
commit
e477633779
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ static size_t mi_segment_map_index_of(const mi_segment_t* segment, size_t* bitid
|
|||
void _mi_segment_map_allocated_at(const mi_segment_t* segment) {
|
||||
size_t bitidx;
|
||||
size_t index = mi_segment_map_index_of(segment, &bitidx);
|
||||
mi_assert_internal(index < MI_SEGMENT_MAP_WSIZE);
|
||||
mi_assert_internal(index <= MI_SEGMENT_MAP_WSIZE);
|
||||
if (index==MI_SEGMENT_MAP_WSIZE) return;
|
||||
uintptr_t mask = mi_atomic_load_relaxed(&mi_segment_map[index]);
|
||||
uintptr_t newmask;
|
||||
|
|
Loading…
Add table
Reference in a new issue