gslice: Fix page size being limited to int instead of gsize

This commit is contained in:
Egor Bychin 2021-10-11 14:11:39 +03:00
parent 5a61f8b922
commit 0abf51e0de

View File

@ -1307,7 +1307,7 @@ static gsize
allocator_aligned_page_size (Allocator *allocator,
gsize n_bytes)
{
gsize val = 1 << g_bit_storage (n_bytes - 1);
gsize val = (gsize) 1 << g_bit_storage (n_bytes - 1);
val = MAX (val, allocator->min_page_size);
return val;
}