From 69f7b03c38772daba0d467968fcd1754860ba8cf Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 23 Jun 2022 09:15:43 +0100 Subject: [PATCH] Correct documentation of g_atomic_pointer_exchange The references to gint and guint were copy/pasted from g_atomic_int_exchange(), but what we want here is a gpointer, gintptr or guintptr like the rest of the g_atomic_pointer_ family. Signed-off-by: Simon McVittie --- glib/gatomic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/gatomic.c b/glib/gatomic.c index 4771d449d..1ab4fde91 100644 --- a/glib/gatomic.c +++ b/glib/gatomic.c @@ -432,7 +432,7 @@ gboolean /** * g_atomic_pointer_exchange: - * @atomic: a pointer to a #gint or #guint + * @atomic: a pointer to a #gpointer-sized value * @newval: the value to replace with * * Sets the @atomic to @newval and returns the old value from @atomic. @@ -444,7 +444,7 @@ gboolean * * This call acts as a full compiler and hardware memory barrier. * - * Returns: the value of @atomic before the exchange, signed + * Returns: the value of @atomic before the exchange * * Since: 2.74 **/