summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/slab.c b/lib/slab.c
index 6cab6b7b..1d844bab 100644
--- a/lib/slab.c
+++ b/lib/slab.c
@@ -195,8 +195,8 @@ sl_new(pool *p, uint size)
{
slab *s = ralloc(p, &sl_class);
uint align = sizeof(struct sl_alignment);
- if (align < sizeof(int))
- align = sizeof(int);
+ if (align < sizeof(void *))
+ align = sizeof(void *);
s->data_size = size;
size = (size + align - 1) / align * align;
s->obj_size = size;