From: Jon Bernard Date: Sun, 7 Mar 2010 02:06:36 +0000 (-0500) Subject: Fix typo in urcu/uatomic_generic.h X-Git-Tag: v0.4.3~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2f2908d07df9df0f8c8b879e63d6523f8b5d487d;p=urcu.git Fix typo in urcu/uatomic_generic.h Signed-off-by: Jon Bernard Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/uatomic_generic.h b/urcu/uatomic_generic.h index 93435d1..f65b398 100644 --- a/urcu/uatomic_generic.h +++ b/urcu/uatomic_generic.h @@ -158,9 +158,9 @@ unsigned long _uatomic_exchange(void *addr, unsigned long val, int len) do { old = uatomic_read((unsigned int *)addr); - while (!__sync_bool_compare_and_swap_4(addr, old, val)); + } while (!__sync_bool_compare_and_swap_4(addr, old, val)); - } return old; + return old; } #if (BITS_PER_LONG == 64) case 8: