glib r7895 - in trunk: . glib



Author: matthiasc
Date: Mon Feb 23 04:07:58 2009
New Revision: 7895
URL: http://svn.gnome.org/viewvc/glib?rev=7895&view=rev

Log:
        * glib/gthread.c (g_once_init_leave): Add a necessary cast back.
        Pointed out by Kazuki Iwamoto.



Modified:
   trunk/ChangeLog
   trunk/glib/gthread.c

Modified: trunk/glib/gthread.c
==============================================================================
--- trunk/glib/gthread.c	(original)
+++ trunk/glib/gthread.c	Mon Feb 23 04:07:58 2009
@@ -228,7 +228,7 @@
   g_return_if_fail (initialization_value != 0);
   g_return_if_fail (g_once_init_list != NULL);
 
-  g_atomic_pointer_set (value_location, (void*) initialization_value);
+  g_atomic_pointer_set ((void**)value_location, (void*) initialization_value);
   g_mutex_lock (g_once_mutex);
   g_once_init_list = g_slist_remove (g_once_init_list, (void*) value_location);
   g_cond_broadcast (g_once_cond);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]