summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2022-05-16 06:07:23 +0000
committerskrll <skrll@NetBSD.org>2022-05-16 06:07:23 +0000
commit49aa07051d77169c63eec00e6a07181feb4633ca (patch)
treebb62fc2ac75a05d94c5e42af3574719ac65e4faf /common
parent2a506d3bdef4e9756a8c8b0af4dc9e8be298558e (diff)
Fix the copy&paste botch from previous. Spotted by Tom Lane.
Diffstat (limited to 'common')
-rw-r--r--common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c b/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c
index 48bdcd0688e..ed1d3704cd3 100644
--- a/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c
+++ b/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.4 2022/05/14 05:35:55 skrll Exp $ */
+/* $NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.5 2022/05/16 06:07:23 skrll Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@ __atomic_compare_exchange_4(volatile void *mem,
* and just do the cas. If we get here the compiler couldn't
* do better and it mostly will not matter at all.
*/
- const uint32_t prev = atomic_cas_8(mem, old, desired);
+ const uint32_t prev = atomic_cas_32(mem, old, desired);
if (prev == old)
return true;
*ep = prev;