diff options
author | daan <daanl@outlook.com> | 2019-07-12 20:39:29 -0700 |
---|---|---|
committer | daan <daanl@outlook.com> | 2019-07-12 20:39:29 -0700 |
commit | 84a292538cdff9f378bdfde9cff226160f686f78 (patch) | |
tree | f974b864deb863490ad66c409f07443b20acdc6b /include/mimalloc-internal.h | |
parent | 8a6b474fa0863325b1da5002b1c0deff59d4e3b7 (diff) | |
parent | a927c07de90d8e8f415be6d34fa533080d8efd67 (diff) |
merge with medium pages
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r-- | include/mimalloc-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h index 4f2675a..3aa0d48 100644 --- a/include/mimalloc-internal.h +++ b/include/mimalloc-internal.h @@ -220,7 +220,7 @@ static inline mi_page_t* _mi_segment_page_of(const mi_segment_t* segment, const mi_assert_internal(diff >= 0 && diff < MI_SEGMENT_SIZE); uintptr_t idx = (uintptr_t)diff >> segment->page_shift; mi_assert_internal(idx < segment->capacity); - mi_assert_internal(segment->page_kind == MI_PAGE_SMALL || idx == 0); + mi_assert_internal(segment->page_kind <= MI_PAGE_MEDIUM || idx == 0); return &((mi_segment_t*)segment)->pages[idx]; } |