diff options
author | Maria Matejka <mq@ucw.cz> | 2022-10-12 10:44:18 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-10-12 10:44:18 +0200 |
commit | 2d99f1277317040d05cca7b8f04b43a66f6fe643 (patch) | |
tree | f0cd9c6b4f02db8804f39ab46c9f56491c20b7ae /lib/slab.c | |
parent | fdacb89a536b1be2fc01904a73e1bee48a49e0d3 (diff) |
Tamed slab signedness warning on 32-bit architectures
Diffstat (limited to 'lib/slab.c')
-rw-r--r-- | lib/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |