aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/wave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/wave.cpp')
-rw-r--r--Alc/backends/wave.cpp8
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];