mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +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);
|
g_return_val_if_fail (atom_size > 0, NULL);
|
||||||
|
|
||||||
mem_chunk = g_slice_new (GMemChunk);
|
mem_chunk = g_slice_new (GMemChunk);
|
||||||
mem_chunk->alloc_size = atom_size;
|
mem_chunk->alloc_size = (guint) atom_size;
|
||||||
|
|
||||||
return mem_chunk;
|
return mem_chunk;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user