aboutsummaryrefslogtreecommitdiffstats
path: root/al/error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'al/error.cpp')
-rw-r--r--al/error.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/al/error.cpp b/al/error.cpp
index a7080493..f3e2dbb3 100644
--- a/al/error.cpp
+++ b/al/error.cpp
@@ -86,7 +86,8 @@ void ALCcontext::setError(ALenum errorCode, const char *msg, ...)
std::lock_guard<std::mutex> _{mEventCbLock};
ALbitfieldSOFT enabledevts{mEnabledEvts.load(std::memory_order_relaxed)};
if((enabledevts&EventType_Error) && mEventCb)
- (*mEventCb)(AL_EVENT_TYPE_ERROR_SOFT, 0, errorCode, msglen, msg, mEventParam);
+ (*mEventCb)(AL_EVENT_TYPE_ERROR_SOFT, 0, static_cast<ALuint>(errorCode), msglen, msg,
+ mEventParam);
}
}