mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-08-25 16:54:47 +03:00
fix build with clang 8
This commit is contained in:
parent
3b08f585bb
commit
f0aca8abcd
2 changed files with 9 additions and 10 deletions
|
@ -465,7 +465,7 @@ bool _mi_free_delayed_block(mi_block_t* block) {
|
|||
}
|
||||
|
||||
// Bytes available in a block
|
||||
inline size_t mi_usable_size(const void* p) mi_attr_noexcept {
|
||||
size_t mi_usable_size(const void* p) mi_attr_noexcept {
|
||||
if (p==NULL) return 0;
|
||||
const mi_segment_t* const segment = _mi_ptr_segment(p);
|
||||
const mi_page_t* const page = _mi_segment_page_of(segment, p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue