diff options
author | Haakon Sporsheim <haakon.sporsheim@gmail.com> | 2010-01-07 10:12:13 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2010-01-07 10:14:24 +0200 |
commit | 4c55b45162a3a76ca6c1d1c450ea667eeb7bae44 (patch) | |
tree | 00a6c61974d158203b25848586cc1c0e0ef55732 /gobject/gatomicarray.c | |
parent | 759fbac7b765e3ef3df4e64e534c99d45526bdd3 (diff) | |
download | glib-4c55b45162a3a76ca6c1d1c450ea667eeb7bae44.tar.gz |
Don't do pointer arithmetics on void*
For instance MSVC doesn't like that.
Signed-off-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'gobject/gatomicarray.c')
-rw-r--r-- | gobject/gatomicarray.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/gatomicarray.c b/gobject/gatomicarray.c index a7b53a0a4..2c2a09cf9 100644 --- a/gobject/gatomicarray.c +++ b/gobject/gatomicarray.c @@ -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; } |