diff options
Diffstat (limited to 'al')
-rw-r--r-- | al/event.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/event.cpp b/al/event.cpp index 7bd5ae1b..a5b5fdc5 100644 --- a/al/event.cpp +++ b/al/event.cpp @@ -56,7 +56,7 @@ int EventThread(ALCcontext *context) std::lock_guard<std::mutex> _{context->mEventCbLock}; do { - auto *evt_ptr = reinterpret_cast<AsyncEvent*>(evt_data.buf); + auto *evt_ptr = std::launder(reinterpret_cast<AsyncEvent*>(evt_data.buf)); evt_data.buf += sizeof(AsyncEvent); evt_data.len -= 1; @@ -164,7 +164,7 @@ void StopEventThrd(ALCcontext *ctx) evt_data = ring->getWriteVector().first; } while(evt_data.len == 0); } - std::ignore = InitAsyncEvent<AsyncKillThread>(reinterpret_cast<AsyncEvent*>(evt_data.buf)); + std::ignore = InitAsyncEvent<AsyncKillThread>(evt_data.buf); ring->writeAdvance(1); ctx->mEventSem.post(); |