summaryrefslogtreecommitdiff
path: root/recipes/glib-2.0/glib-2.0-2.22.1/g_once_init_enter.patch
blob: 58e410884f2381bf2b05bfc26aa29fc9eca455b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- glib-2.22.1/glib/gthread.h.orig	2009-10-13 22:53:23.000000000 +0200
+++ glib-2.22.1/glib/gthread.h	2009-10-13 23:34:59.000000000 +0200
@@ -341,7 +341,7 @@
 G_INLINE_FUNC gboolean
 g_once_init_enter (volatile gsize *value_location)
 {
-  if G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != NULL)
+  if G_LIKELY ((gpointer) g_atomic_pointer_get ((volatile gpointer *)value_location) != NULL)
     return FALSE;
   else
     return g_once_init_enter_impl (value_location);