mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-07 14:10:05 +02:00
more atomic ops pointer cast fixes. this time it'll work with atomic op
Fri Jul 13 01:01:46 2007 Tim Janik <timj@imendio.com> * glib/gthread.[hc]: more atomic ops pointer cast fixes. this time it'll work with atomic op macros *and* atomic op functions. svn path=/trunk/; revision=5638
This commit is contained in:
@@ -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 ((void*) 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);
|
||||
|
Reference in New Issue
Block a user