aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/mmdevapi.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-06-29 10:25:33 -0700
committerChris Robinson <[email protected]>2017-06-29 10:28:22 -0700
commitec13cf6c9cefa709db9fb9099e3ce5f502931161 (patch)
tree073593b87e4c3bcb8357e3747d57b6afa3140a1f /Alc/backends/mmdevapi.c
parenta69d608a1ec38e6afd903224e86c0bf29b8d0623 (diff)
Add casts to silence MSVC
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r--Alc/backends/mmdevapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index 668d2fe5..9afb62f0 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -1619,7 +1619,7 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self)
device->Frequency);
// Make sure buffer is at least 100ms in size
buf_time = maxu64(buf_time, REFTIME_PER_SEC/10);
- device->UpdateSize = ScaleCeil(buf_time, device->Frequency, REFTIME_PER_SEC) /
+ device->UpdateSize = (ALuint)ScaleCeil(buf_time, device->Frequency, REFTIME_PER_SEC) /
device->NumUpdates;
OutputType.Format.wFormatTag = WAVE_FORMAT_EXTENSIBLE;