aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-12 21:18:31 -0800
committerChris Robinson <[email protected]>2018-12-12 21:18:31 -0800
commitb779ebb512b840a325b32f258261c37bf36a1b7a (patch)
tree4f09621bb0f307601e8ffdfa9e2dc02bc9630421 /OpenAL32/alSource.cpp
parentb37bc9f8b7c5ff5f25069ae307c0255ec4320458 (diff)
Fix some MSVC conversion warnings
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r--OpenAL32/alSource.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index f257da83..3697b232 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -468,7 +468,7 @@ ALsource *AllocSource(ALCcontext *context)
[](const SourceSubList &entry) -> bool
{ return entry.FreeMask != 0; }
);
- ALsizei lidx = std::distance(context->SourceList.begin(), sublist);
+ auto lidx = static_cast<ALsizei>(std::distance(context->SourceList.begin(), sublist));
ALsource *source;
ALsizei slidx;
if(LIKELY(sublist != context->SourceList.end()))
@@ -2122,7 +2122,8 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n, ALuint *sources)
}
);
if(alloc_end != tempids.end())
- alDeleteSources(std::distance(tempids.begin(), alloc_end), tempids.data());
+ alDeleteSources(static_cast<ALsizei>(std::distance(tempids.begin(), alloc_end)),
+ tempids.data());
else
std::copy(tempids.cbegin(), tempids.cend(), sources);
}