mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 14:13:41 +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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user