diff options
author | bunnei <bunneidev@gmail.com> | 2020-09-27 10:52:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-27 10:52:59 +0200 |
commit | a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf (patch) | |
tree | 2ffdcbce07231caba437d6ac1cbfe23f3a02f16e /src/audio_core/mix_context.cpp | |
parent | Merge pull request #4724 from lat9nq/fix-vulkan-nvidia-allocate-2 (diff) | |
parent | audio_core: Resolve sign conversion warnings (diff) | |
download | yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.tar yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.tar.gz yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.tar.bz2 yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.tar.lz yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.tar.xz yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.tar.zst yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.zip |
Diffstat (limited to 'src/audio_core/mix_context.cpp')
-rw-r--r-- | src/audio_core/mix_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/mix_context.cpp b/src/audio_core/mix_context.cpp index 042891490..4bca72eb0 100644 --- a/src/audio_core/mix_context.cpp +++ b/src/audio_core/mix_context.cpp @@ -53,7 +53,7 @@ void MixContext::UpdateDistancesFromFinalMix() { auto mix_id = in_params.mix_id; // Needs to be referenced out of scope s32 distance_to_final_mix{AudioCommon::FINAL_MIX}; - for (; distance_to_final_mix < info_count; distance_to_final_mix++) { + for (; distance_to_final_mix < static_cast<s32>(info_count); distance_to_final_mix++) { if (mix_id == AudioCommon::FINAL_MIX) { // If we're at the final mix, we're done break; @@ -77,7 +77,7 @@ void MixContext::UpdateDistancesFromFinalMix() { } // If we're out of range for our distance, mark it as no final mix - if (distance_to_final_mix >= info_count) { + if (distance_to_final_mix >= static_cast<s32>(info_count)) { distance_to_final_mix = AudioCommon::NO_FINAL_MIX; } |