Skip to content

Commit 6699b90

Browse files
committed
Fix utils_atomic_load_acquire on Windows
1 parent cdc0310 commit 6699b90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/utils_concurrency.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ static __inline unsigned char utils_mssb_index(long long value) {
7575
// There is no good way to do atomic_load on windows...
7676
#define utils_atomic_load_acquire(object, dest) \
7777
do { \
78-
*dest = InterlockedOr64Acquire((LONG64 volatile *)object, 0); \
78+
*(LONG64 *)dest = \
79+
InterlockedOr64Acquire((LONG64 volatile *)object, 0); \
7980
} while (0)
8081

8182
#define utils_atomic_store_release(object, desired) \

0 commit comments

Comments
 (0)