Skip to content

Commit 3959e16

Browse files
committed
debug windows
1 parent 310400f commit 3959e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/src/atomic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static void __platform_wait_on_address(void const* __ptr, void const* __val) {
163163
static auto wait_on_address =
164164
reinterpret_cast<BOOL(WINAPI*)(void*, PVOID, SIZE_T, DWORD)>(win32_get_synch_api_function("WaitOnAddress"));
165165
if (wait_on_address != nullptr) {
166-
wait_on_address(const_cast<void*>(__ptr), &__val, _Size, INFINITE);
166+
wait_on_address(const_cast<void*>(__ptr), const_cast<void*>(__val), _Size, INFINITE);
167167
} else {
168168
__libcpp_thread_poll_with_backoff(
169169
[=]() -> bool { return std::memcmp(const_cast<const void*>(__ptr), __val, _Size) != 0; },

0 commit comments

Comments
 (0)