Don't do pointer arithmetics on void*

For instance MSVC doesn't like that.

Signed-off-by: Tor Lillqvist <tml@iki.fi>
This commit is contained in:
Haakon Sporsheim 2010-01-07 10:12:13 +02:00 committed by Tor Lillqvist
parent 759fbac7b7
commit 4c55b45162

View File

@ -77,7 +77,7 @@ freelist_alloc (gsize size, gboolean reuse)
real_size = sizeof (gsize) + MAX (size, sizeof (FreeListNode));
mem = g_slice_alloc (real_size);
mem += sizeof (gsize);
mem = ((char *) mem) + sizeof (gsize);
G_ATOMIC_ARRAY_DATA_SIZE (mem) = size;
return mem;
}