summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-02-04 15:50:21 +0100
committerMaria Matejka <mq@ucw.cz>2022-02-04 15:50:21 +0100
commit5a65ae45e5da06b9e7c6a690aa7c4afdd08dca6c (patch)
tree4bf5be3cc97ef00d23128a701926e62b14d62b9e /lib
parentcc73726620da84a8ed79cf852384226aa05e5458 (diff)
Tamed harmless i368 warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slab.c b/lib/slab.c
index c3947162..c4ccbd37 100644
--- a/lib/slab.c
+++ b/lib/slab.c
@@ -213,7 +213,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 > (uint) page_size);
if (!s->objs_per_slab)
bug("Slab: object too large");