From 5ac19673db211d1bee7687335af96cee4e6b40d8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 12 May 2019 19:41:34 -0700 Subject: [PATCH] Fix a couple type truncation warnings with MSVC --- Alc/backends/wasapi.cpp | 2 +- Alc/panning.cpp | 2 +- 2 files changed, 2 insertions(+), 2 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); diff --git a/Alc/panning.cpp b/Alc/panning.cpp index ce822123..4501efa5 100644 --- a/Alc/panning.cpp +++ b/Alc/panning.cpp @@ -783,7 +783,7 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appr else { int hqdec{GetConfigValueBool(devname, "decoder", "hq-mode", 0)}; - InitCustomPanning(device, hqdec, pconf, speakermap); + InitCustomPanning(device, !!hqdec, pconf, speakermap); } /* Enable the stablizer only for formats that have front-left, front-