From 47128b7def4954c4cf544924c94f018d88033374 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 2 Sep 2018 15:32:56 +0200 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- encalloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'encalloc.c') diff --git a/encalloc.c b/encalloc.c index f930f82..82d25e3 100644 --- a/encalloc.c +++ b/encalloc.c @@ -27,6 +27,7 @@ main(void) assert((info = get_allocinfo(ptr))); assert(info->size == 10); assert(info->zeroed == 10); + assert(!((uintptr_t)ptr % (uintptr_t)(info->alignment))); } free(ptr); @@ -35,6 +36,7 @@ main(void) assert((info = get_allocinfo(ptr))); assert(info->size == 12); assert(info->zeroed == 12); + assert(!((uintptr_t)ptr % (uintptr_t)(info->alignment))); } free(ptr); -- cgit v1.2.3-70-g09d2