Module Name: src Committed By: skrll Date: Mon May 16 06:07:23 UTC 2022
Modified Files: src/common/lib/libc/atomic: atomic_c11_compare_exchange_cas_32.c Log Message: Fix the copy&paste botch from previous. Spotted by Tom Lane. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 \ src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c diff -u src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c:1.4 src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c:1.5 --- src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c:1.4 Sat May 14 05:35:55 2022 +++ src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c Mon May 16 06:07:23 2022 @@ -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 voi * 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;