aboutsummaryrefslogtreecommitdiffstats
path: root/al/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'al/state.cpp')
-rw-r--r--al/state.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/al/state.cpp b/al/state.cpp
index 77b104a4..fb3186c7 100644
--- a/al/state.cpp
+++ b/al/state.cpp
@@ -35,6 +35,7 @@
#include "AL/alext.h"
#include "al/debug.h"
+#include "albit.h"
#include "alc/alu.h"
#include "alc/context.h"
#include "alc/inprogext.h"
@@ -516,7 +517,7 @@ START_API_FUNC
switch(pname)
{
case AL_EVENT_CALLBACK_FUNCTION_SOFT:
- *values = reinterpret_cast<void*>(context->mEventCb);
+ *values = al::bit_cast<void*>(context->mEventCb);
break;
case AL_EVENT_CALLBACK_USER_PARAM_SOFT:
@@ -524,7 +525,7 @@ START_API_FUNC
break;
case AL_DEBUG_CALLBACK_FUNCTION_EXT:
- *values = reinterpret_cast<void*>(context->mDebugCb);
+ *values = al::bit_cast<void*>(context->mDebugCb);
break;
case AL_DEBUG_CALLBACK_USER_PARAM_EXT: