diff options
author | daan <daanl@outlook.com> | 2021-12-17 13:25:38 -0800 |
---|---|---|
committer | daan <daanl@outlook.com> | 2021-12-17 13:25:38 -0800 |
commit | faf2a7020c4d3234434b165f5c27f89d7777016b (patch) | |
tree | 1b2275a143f2a77833f9fef6e6bec82e827f1ec4 /src/alloc-posix.c | |
parent | 89f583a69b86a06966fb07b4794b4046faa01fee (diff) |
add extra alignment tests
Diffstat (limited to 'src/alloc-posix.c')
-rw-r--r-- | src/alloc-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc-posix.c b/src/alloc-posix.c index efe6281..0317108 100644 --- a/src/alloc-posix.c +++ b/src/alloc-posix.c @@ -85,7 +85,7 @@ mi_decl_restrict void* mi_pvalloc(size_t size) mi_attr_noexcept { mi_decl_restrict void* mi_aligned_alloc(size_t alignment, size_t size) mi_attr_noexcept { if (mi_unlikely((size&(alignment-1)) != 0)) { // C11 requires alignment>0 && integral multiple, see <https://en.cppreference.com/w/c/memory/aligned_alloc> #if MI_DEBUG > 0 - _mi_error_message(EOVERFLOW, "(mi_)aligned_alloc requires the size to be an integral multiple of the alignment (size %zu, alignment %zu)", size, alignment); + _mi_error_message(EOVERFLOW, "(mi_)aligned_alloc requires the size to be an integral multiple of the alignment (size %zu, alignment %zu)\n", size, alignment); #endif return NULL; } |