]> 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 09:36:48 +0000 (11:36 +0200)
lib/isc/win32/include/isc/stdatomic.h

index 2482bb57936d2ae8c9427c8301edcc88f485bc96..618fa8ab70ee06e122e4a185d733a17a8ecf45c9 100644 (file)
@@ -187,7 +187,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