aboutsummaryrefslogtreecommitdiffstats
path: root/allocn.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-05 21:09:40 +0100
committerMattias Andrée <maandree@kth.se>2018-11-05 21:09:40 +0100
commit49a1c8389033aa8cf5d50777af00935f53701acd (patch)
tree8c9f6de355f98eb559d003938d25797994c678a8 /allocn.c
parentm (diff)
downloadlibsimple-49a1c8389033aa8cf5d50777af00935f53701acd.tar.gz
libsimple-49a1c8389033aa8cf5d50777af00935f53701acd.tar.bz2
libsimple-49a1c8389033aa8cf5d50777af00935f53701acd.tar.xz
Add tests and small fixes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'allocn.c')
-rw-r--r--allocn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/allocn.c b/allocn.c
index bc199d2..d54542c 100644
--- a/allocn.c
+++ b/allocn.c
@@ -223,7 +223,7 @@ main(void)
if (have_custom_malloc()) {
assert((info = get_allocinfo(ptr)));
assert(info->size == 432);
- assert(info->alignment == 2 *sizeof(void *));
+ assert(info->alignment == 2 * sizeof(void *));
assert(!info->zeroed);
assert(!((uintptr_t)ptr % (uintptr_t)(info->alignment)));
}