]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix the wrong function for the atomic_fetch_add_explicit64 shim on non-WIN64 build
authorOndřej Surý <ondrej@sury.org>
Thu, 4 Jul 2019 09:04:29 +0000 (11:04 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 26 Sep 2019 11:01:26 +0000 (13:01 +0200)
lib/isc/win32/include/isc/stdatomic.h

index 1d933e55e9f69ded8b3c839daaa91418fa9e50b4..4b1855461b38fce7b59775983fa238b2288a216f 100644 (file)
@@ -185,7 +185,7 @@ atomic_load_abort() {
               : InterlockedExchangeAdd64((atomic_int_fast64_t *)obj, arg))))
 #else
 #define atomic_fetch_add_explicit64(obj, arg, order)   \
-       InterlockedExchange64((atomic_int_fast64_t *)obj, arg)
+       InterlockedExchangeAdd64((atomic_int_fast64_t *)obj, arg)
 #endif
 
 static inline