aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-12 19:41:34 -0700
committerChris Robinson <[email protected]>2019-05-12 19:41:34 -0700
commit5ac19673db211d1bee7687335af96cee4e6b40d8 (patch)
treedba6f0da298916e0b48470fd91211d6dd43debdd /Alc/backends
parent8d437a513539d016764e3297a441a318d7e7997c (diff)
Fix a couple type truncation warnings with MSVC
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/wasapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp
index f4448621..11664464 100644
--- a/Alc/backends/wasapi.cpp
+++ b/Alc/backends/wasapi.cpp
@@ -988,7 +988,7 @@ HRESULT WasapiPlayback::resetProxy()
/* Find the nearest multiple of the period size to the update size */
if(min_per < per_time)
- min_per *= maxu((per_time + min_per/2) / min_per, 1u);
+ min_per *= maxi64((per_time + min_per/2) / min_per, 1);
min_len = (UINT32)ScaleCeil(min_per, mDevice->Frequency, REFTIME_PER_SEC);
min_len = minu(min_len, buffer_len/2);