Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ccaa140

Browse files
authoredDec 18, 2023
Fix cast mistake
1 parent 240adf6 commit ccaa140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/BlocksRuntime/runtime.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
#if __has_builtin(__atomic_compare_exchange_n)
3737
#define OSAtomicCompareAndSwapInt(_Old, _New, _Ptr) \
38-
__atomic_compare_exchange_n((atomic_int *)_Ptr, &_Old, _New, true, memory_order_seq_cst, memory_order_seq_cst)
38+
__atomic_compare_exchange_n(_Ptr, &_Old, _New, true, memory_order_seq_cst, memory_order_seq_cst)
3939
#else
4040
#define _CRT_SECURE_NO_WARNINGS 1
4141
#include <Windows.h>

0 commit comments

Comments
 (0)
Please sign in to comment.