aboutsummaryrefslogtreecommitdiffstats
path: root/encalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'encalloc.c')
-rw-r--r--encalloc.c2
1 files changed, 2 insertions, 0 deletions
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);