mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-11 17:08:46 +00:00
Tamed slab signedness warning on 32-bit architectures
This commit is contained in:
parent
fdacb89a53
commit
2d99f12773
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user