aboutsummaryrefslogtreecommitdiffstats
path: root/al/error.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-12 06:29:32 -0700
committerChris Robinson <[email protected]>2019-09-12 06:29:32 -0700
commitc0ce03d8b9533c768687964743420b18c5003455 (patch)
tree83d5f99d77098251339adc30237b5733964d5b56 /al/error.cpp
parentb71eb4dafd9e525020a5f2cd869d671fb3e8e5bd (diff)
Get rid of more implicit conversions
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);
}
}