diff options
author | Tim Janik <timj@imendio.com> | 2007-07-12 22:51:56 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2007-07-12 22:51:56 +0000 |
commit | b1e888b60e505b8d5a68e349a6e9e3966187d2de (patch) | |
tree | f26a90a46cae492a15ac2aa67e6b0ece0580ac19 /glib/gthread.h | |
parent | 7bfc2b8a92e52d80a95053c6037daa73474720e2 (diff) | |
download | glib-b1e888b60e505b8d5a68e349a6e9e3966187d2de.tar.gz |
fixed missing pointer casts when using atomic ops.
Fri Jul 13 00:50:40 2007 Tim Janik <timj@imendio.com>
* glib/gthread.[hc]: fixed missing pointer casts when using atomic ops.
svn path=/trunk/; revision=5637
Diffstat (limited to 'glib/gthread.h')
-rw-r--r-- | glib/gthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gthread.h b/glib/gthread.h index 2076185e3..6ccc9649f 100644 --- a/glib/gthread.h +++ b/glib/gthread.h @@ -332,7 +332,7 @@ void g_once_init_leave (volatile gsize *value_location, G_INLINE_FUNC gboolean g_once_init_enter (volatile gsize *value_location) { - if G_LIKELY (g_atomic_pointer_get (value_location) !=0) + if G_LIKELY (g_atomic_pointer_get ((void*) value_location) !=0) return FALSE; else return g_once_init_enter_impl (value_location); |