Skip to content

Commit e1a4c7e

Browse files
committed
fix mi_free_csize declaration
1 parent c808493 commit e1a4c7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/mimalloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ static inline mi_decl_restrict void* mi_theap_malloc_csize(mi_theap_t* theap, si
406406
static inline mi_decl_restrict void* mi_theap_zalloc_csize(mi_theap_t* theap, size_t size) mi_attr_noexcept {
407407
if (size <= MI_SMALL_SIZE_MAX) { return mi_theap_zalloc_small(theap,size); } else { return mi_theap_malloc(theap,size); }
408408
}
409-
static inline mi_decl_restrict void mi_free_csize(void* p, size_t size) mi_attr_noexcept {
409+
static inline void mi_free_csize(void* p, size_t size) mi_attr_noexcept {
410410
if (size <= MI_SMALL_SIZE_MAX) { mi_free_small(p); } else { mi_free(p); }
411411
}
412412

0 commit comments

Comments
 (0)