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:
Philip Withnall 2025-04-10 18:33:20 +01:00
parent 40dd9ea9e0
commit 2dd6271a9a
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA

View File

@ -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;
}