Fix g_atomic_pointer_compare_and_exchange on sparc64. (#167572, Gert
authorMatthias Clasen <mclasen@redhat.com>
Tue, 19 Jul 2005 15:30:23 +0000 (15:30 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 19 Jul 2005 15:30:23 +0000 (15:30 +0000)
2005-07-19  Matthias Clasen  <mclasen@redhat.com>

        * glib/gatomic.c (g_atomic_pointer_compare_and_exchange):
        Fix g_atomic_pointer_compare_and_exchange on sparc64.
        (#167572, Gert Doering)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/gatomic.c

index 487a295..b037658 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-19  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gatomic.c (g_atomic_pointer_compare_and_exchange): 
+       Fix g_atomic_pointer_compare_and_exchange on sparc64.
+       (#167572, Gert Doering)
+
 2005-07-15  Matthias Clasen  <mclasen@redhat.com>
 
        * configure.in: Bump version
index 487a295..b037658 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-19  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gatomic.c (g_atomic_pointer_compare_and_exchange): 
+       Fix g_atomic_pointer_compare_and_exchange on sparc64.
+       (#167572, Gert Doering)
+
 2005-07-15  Matthias Clasen  <mclasen@redhat.com>
 
        * configure.in: Bump version
index 487a295..b037658 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-19  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gatomic.c (g_atomic_pointer_compare_and_exchange): 
+       Fix g_atomic_pointer_compare_and_exchange on sparc64.
+       (#167572, Gert Doering)
+
 2005-07-15  Matthias Clasen  <mclasen@redhat.com>
 
        * configure.in: Bump version
index 487a295..b037658 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-19  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gatomic.c (g_atomic_pointer_compare_and_exchange): 
+       Fix g_atomic_pointer_compare_and_exchange on sparc64.
+       (#167572, Gert Doering)
+
 2005-07-15  Matthias Clasen  <mclasen@redhat.com>
 
        * configure.in: Bump version
index 308486b..2f4f9b0 100644 (file)
@@ -121,7 +121,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
                        : "=r" (result), "=m" (*a)
                        : "r" (oldval), "m" (*a), "r" (a),
                        "0" (newval));
-  return result != 0;
+  return result == oldval;
 }
 #  else /* What's that */
 #    error "Your system has an unsupported pointer size"