diff options
author | Chris Robinson <[email protected]> | 2018-12-12 21:18:31 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-12 21:18:31 -0800 |
commit | b779ebb512b840a325b32f258261c37bf36a1b7a (patch) | |
tree | 4f09621bb0f307601e8ffdfa9e2dc02bc9630421 /OpenAL32/alBuffer.cpp | |
parent | b37bc9f8b7c5ff5f25069ae307c0255ec4320458 (diff) |
Fix some MSVC conversion warnings
Diffstat (limited to 'OpenAL32/alBuffer.cpp')
-rw-r--r-- | OpenAL32/alBuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alBuffer.cpp b/OpenAL32/alBuffer.cpp index dbd48ad0..6bc965c2 100644 --- a/OpenAL32/alBuffer.cpp +++ b/OpenAL32/alBuffer.cpp @@ -59,7 +59,7 @@ ALbuffer *AllocBuffer(ALCcontext *context) { return entry.FreeMask != 0; } ); - auto lidx = std::distance(device->BufferList.begin(), sublist); + auto lidx = static_cast<ALsizei>(std::distance(device->BufferList.begin(), sublist)); ALbuffer *buffer{nullptr}; ALsizei slidx{0}; if(LIKELY(sublist != device->BufferList.end())) @@ -442,7 +442,7 @@ AL_API ALvoid AL_APIENTRY alGenBuffers(ALsizei n, ALuint *buffers) ALbuffer *buffer = AllocBuffer(context.get()); if(!buffer) { - alDeleteBuffers(ids.size(), ids.data()); + alDeleteBuffers(static_cast<ALsizei>(ids.size()), ids.data()); return; } |