diff options
author | Chris Robinson <[email protected]> | 2024-01-03 14:58:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2024-01-03 14:58:07 -0800 |
commit | 18349e1da2c79d0f41c8c4f12ccd065f91618a6f (patch) | |
tree | 43124b48b1542f9049d20a01f0c625a954b96510 /al/state.cpp | |
parent | e90075031dfeec7ff03d5d1c5e319e7472312f46 (diff) |
Avoid using bit_cast for pointer types
Diffstat (limited to 'al/state.cpp')
-rw-r--r-- | al/state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/state.cpp b/al/state.cpp index c1e3d593..3ef87fbb 100644 --- a/al/state.cpp +++ b/al/state.cpp @@ -463,7 +463,7 @@ FORCE_ALIGN void AL_APIENTRY alGetPointervDirectSOFT(ALCcontext *context, ALenum switch(pname) { case AL_EVENT_CALLBACK_FUNCTION_SOFT: - *values = al::bit_cast<void*>(context->mEventCb); + *values = reinterpret_cast<void*>(context->mEventCb); break; case AL_EVENT_CALLBACK_USER_PARAM_SOFT: @@ -471,7 +471,7 @@ FORCE_ALIGN void AL_APIENTRY alGetPointervDirectSOFT(ALCcontext *context, ALenum break; case AL_DEBUG_CALLBACK_FUNCTION_EXT: - *values = al::bit_cast<void*>(context->mDebugCb); + *values = reinterpret_cast<void*>(context->mDebugCb); break; case AL_DEBUG_CALLBACK_USER_PARAM_EXT: |