mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-31 09:50:05 +02:00
gallocator: Fix a harmless -Wsign-conversion warning
The code already checked that `atom_size` was positive. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3405
This commit is contained in:
parent
40dd9ea9e0
commit
2dd6271a9a
@ -40,7 +40,7 @@ g_mem_chunk_new (const gchar *name,
|
||||
g_return_val_if_fail (atom_size > 0, NULL);
|
||||
|
||||
mem_chunk = g_slice_new (GMemChunk);
|
||||
mem_chunk->alloc_size = atom_size;
|
||||
mem_chunk->alloc_size = (guint) atom_size;
|
||||
|
||||
return mem_chunk;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user