Skip to content

Commit f76a678

Browse files
committed
fix mi_likely macro in debug build
1 parent cea47b8 commit f76a678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/alloc-aligned.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ mi_decl_nodiscard mi_decl_restrict void* mi_heap_malloc_aligned(mi_heap_t* heap,
105105
if mi_likely(_mi_is_power_of_two(size) && size >= alignment && size <= MI_SMALL_SIZE_MAX)
106106
#else
107107
// with padding, we can only guarantee this for fixed alignments
108-
if (mi_likely((alignment == sizeof(void*) || (alignment == MI_MAX_ALIGN_SIZE && size > (MI_MAX_ALIGN_SIZE/2)))
109-
&& size <= MI_SMALL_SIZE_MAX))
108+
if mi_likely((alignment == sizeof(void*) || (alignment == MI_MAX_ALIGN_SIZE && size > (MI_MAX_ALIGN_SIZE/2)))
109+
&& size <= MI_SMALL_SIZE_MAX)
110110
#endif
111111
{
112112
// fast path for common alignment and size

0 commit comments

Comments
 (0)