summaryrefslogtreecommitdiff
path: root/lib/slab.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-10-12 10:44:18 +0200
committerMaria Matejka <mq@ucw.cz>2022-10-12 10:44:18 +0200
commit2d99f1277317040d05cca7b8f04b43a66f6fe643 (patch)
treef0cd9c6b4f02db8804f39ab46c9f56491c20b7ae /lib/slab.c
parentfdacb89a536b1be2fc01904a73e1bee48a49e0d3 (diff)
Tamed slab signedness warning on 32-bit architectures
Diffstat (limited to 'lib/slab.c')
-rw-r--r--lib/slab.c2
1 files changed, 1 insertions, 1 deletions
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");