Skip to content

Commit c739700

Browse files
committed
[UR] Fix util_atomic_load_acquire implementation for windows
it was assinging destination to the destination ingoring the source...
1 parent a1fbbde commit c739700

File tree

1 file changed

+1
-1
lines changed
  • source/common/unified_malloc_framework/src/utils

1 file changed

+1
-1
lines changed

source/common/unified_malloc_framework/src/utils/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static __inline unsigned char util_mssb_index(long long value) {
4343
// There is no good way to do atomic_load on windows...
4444
#define util_atomic_load_acquire(object, dest) \
4545
do { \
46-
*dest = InterlockedOr64Acquire((LONG64 volatile *)dest, 0); \
46+
*dest = InterlockedOr64Acquire((LONG64 volatile *)object, 0); \
4747
} while (0)
4848

4949
#define util_atomic_store_release(object, desired) \

0 commit comments

Comments
 (0)