From 2d99f1277317040d05cca7b8f04b43a66f6fe643 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 12 Oct 2022 10:44:18 +0200 Subject: Tamed slab signedness warning on 32-bit architectures --- lib/slab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/slab.c b/lib/slab.c index 054daea1..cf2ecc70 100644 --- a/lib/slab.c +++ b/lib/slab.c @@ -236,7 +236,7 @@ sl_new(pool *p, uint size) + sizeof(u32) * s->head_bitfield_len + align - 1) / align * align; - } while (s->objs_per_slab * size + s->head_size > page_size); + } while (s->objs_per_slab * size + s->head_size > (size_t) page_size); if (!s->objs_per_slab) bug("Slab: object too large"); -- cgit v1.2.3