aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alState.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-27 11:50:06 -0800
committerChris Robinson <[email protected]>2018-01-27 14:34:05 -0800
commitc4a76af3978715315603bd967ac688509b074775 (patch)
tree656543cd28335aa7a3e12fb00aa68aa73c924408 /OpenAL32/alState.c
parentf76ab02bd4fc13d6648d839374da966ef12201fd (diff)
Add some casts to pacify MSVC
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r--OpenAL32/alState.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c
index 2637aacd..d436e7a7 100644
--- a/OpenAL32/alState.c
+++ b/OpenAL32/alState.c
@@ -720,9 +720,10 @@ AL_API ALvoid AL_APIENTRY alDopplerVelocity(ALfloat value)
{
static const ALCchar msg[] =
"alDopplerVelocity is deprecated in AL1.1, use alSpeedOfSound";
+ const ALsizei msglen = (ALsizei)strlen(msg);
almtx_lock(&context->EventLock);
if((context->EnabledEvts&EventType_Deprecated) && context->EventCb)
- (*context->EventCb)(AL_EVENT_TYPE_DEPRECATED_SOFT, 0, 0, strlen(msg), msg,
+ (*context->EventCb)(AL_EVENT_TYPE_DEPRECATED_SOFT, 0, 0, msglen, msg,
context->EventParam);
almtx_unlock(&context->EventLock);
}