mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
gslice: Fix page size being limited to int instead of gsize
This commit is contained in:
parent
5a61f8b922
commit
0abf51e0de
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user