Skip to content

Commit b6df5a5

Browse files
author
Roger Sanders
committed
[libc++] Fixed build error and warning
1 parent 27b395d commit b6df5a5

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
@@ -129,7 +129,7 @@ static void* win32_get_synch_api_function(const char* function_name) {
129129
// Attempt to locate the function in the API and return the result to the caller. Note that the NULL return from this
130130
// method is documented as being interchangeable with nullptr.
131131
// https://devblogs.microsoft.com/oldnewthing/20180307-00/?p=98175
132-
return GetProcAddress(module_handle.get(), function_name);
132+
return reinterpret_cast<void*>(GetProcAddress(module_handle, function_name));
133133
}
134134

135135
static void

0 commit comments

Comments
 (0)