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 /Alc/backends/wave.cpp | |
parent | b37bc9f8b7c5ff5f25069ae307c0255ec4320458 (diff) |
Fix some MSVC conversion warnings
Diffstat (limited to 'Alc/backends/wave.cpp')
-rw-r--r-- | Alc/backends/wave.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/backends/wave.cpp b/Alc/backends/wave.cpp index 25245a1b..afa948cb 100644 --- a/Alc/backends/wave.cpp +++ b/Alc/backends/wave.cpp @@ -155,13 +155,13 @@ int ALCwaveBackend_mixerProc(ALCwaveBackend *self) if(!IS_LITTLE_ENDIAN) { - ALuint bytesize = BytesFromDevFmt(device->FmtType); - ALuint i; + const ALsizei bytesize{BytesFromDevFmt(device->FmtType)}; + ALsizei i; if(bytesize == 2) { ALushort *samples = reinterpret_cast<ALushort*>(self->mBuffer.data()); - ALuint len = self->mBuffer.size() / 2; + const auto len = static_cast<ALsizei>(self->mBuffer.size() / 2); for(i = 0;i < len;i++) { ALushort samp = samples[i]; @@ -171,7 +171,7 @@ int ALCwaveBackend_mixerProc(ALCwaveBackend *self) else if(bytesize == 4) { ALuint *samples = reinterpret_cast<ALuint*>(self->mBuffer.data()); - ALuint len = self->mBuffer.size() / 4; + const auto len = static_cast<ALsizei>(self->mBuffer.size() / 4); for(i = 0;i < len;i++) { ALuint samp = samples[i]; |