Commit 4c55b451 authored by Haakon Sporsheim's avatar Haakon Sporsheim Committed by Tor Lillqvist

Don't do pointer arithmetics on void*

For instance MSVC doesn't like that.
Signed-off-by: default avatarTor Lillqvist <tml@iki.fi>
parent 759fbac7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment