Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 801741f

Browse filesBrowse files
authored
gh-90815: Fix mimalloc atomic.h on Windows arm64 (#111527)
mi_atomic_load_explicit() casts 'p' argument to drop the 'const' qualifier on Windows arm64 platform. Fix the compiler warning: 'function': different 'const' qualifiers (compiling source file ..\Objects\mimalloc\options.c)
1 parent 1673e44 commit 801741f
Copy full SHA for 801741f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
  • Include/internal/mimalloc/mimalloc
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Include/internal/mimalloc/mimalloc/atomic.h

Copy file name to clipboardExpand all lines: Include/internal/mimalloc/mimalloc/atomic.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static inline uintptr_t mi_atomic_load_explicit(_Atomic(uintptr_t) const* p, mi_
195195
#else
196196
uintptr_t x = *p;
197197
if (mo > mi_memory_order_relaxed) {
198-
while (!mi_atomic_compare_exchange_weak_explicit(p, &x, x, mo, mi_memory_order_relaxed)) { /* nothing */ };
198+
while (!mi_atomic_compare_exchange_weak_explicit((_Atomic(uintptr_t)*)p, &x, x, mo, mi_memory_order_relaxed)) { /* nothing */ };
199199
}
200200
return x;
201201
#endif

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.