aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-12 21:58:41 -0800
committerChris Robinson <[email protected]>2018-12-12 21:58:41 -0800
commit0d73b13f59e5df1bc87266e4ee3bced85a8dd5ef (patch)
tree20f5fbe04706b28e415dd21752a6fac484ca1890 /Alc/backends
parentb779ebb512b840a325b32f258261c37bf36a1b7a (diff)
Add more casts for MSVC
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/winmm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/backends/winmm.cpp b/Alc/backends/winmm.cpp
index 0d353906..ff5d026c 100644
--- a/Alc/backends/winmm.cpp
+++ b/Alc/backends/winmm.cpp
@@ -363,7 +363,8 @@ ALCboolean ALCwinmmPlayback_start(ALCwinmmPlayback *self)
[self](WAVEHDR &waveHdr) -> void
{ waveOutPrepareHeader(self->OutHdl, &waveHdr, static_cast<UINT>(sizeof(WAVEHDR))); }
);
- self->Writable.store(self->WaveBuffer.size(), std::memory_order_release);
+ self->Writable.store(static_cast<ALuint>(self->WaveBuffer.size()),
+ std::memory_order_release);
self->mKillNow.store(AL_FALSE, std::memory_order_release);
self->mThread = std::thread(ALCwinmmPlayback_mixerProc, self);