summaryrefslogtreecommitdiff
path: root/src/audio_core/voice_context.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2020-09-25 00:28:35 -0400
committerGravatar Lioncash2020-09-25 01:22:47 -0400
commit8b4ecf22d485958f69ecbd2fa4ca55d9ce393826 (patch)
tree8f920f5ff338f8dcc38fea54c5f3df30c5d35c44 /src/audio_core/voice_context.cpp
parenteffect_context: Make use of explicit where applicable (diff)
downloadyuzu-8b4ecf22d485958f69ecbd2fa4ca55d9ce393826.tar.gz
yuzu-8b4ecf22d485958f69ecbd2fa4ca55d9ce393826.tar.xz
yuzu-8b4ecf22d485958f69ecbd2fa4ca55d9ce393826.zip
audio_core: Resolve sign conversion warnings
While were at it, we can also enable sign conversion warnings and other common warnings as errors to prevent these from creeping back into the codebase.
Diffstat (limited to 'src/audio_core/voice_context.cpp')
-rw-r--r--src/audio_core/voice_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/voice_context.cpp b/src/audio_core/voice_context.cpp
index 1d8f69844..863ac9267 100644
--- a/src/audio_core/voice_context.cpp
+++ b/src/audio_core/voice_context.cpp
@@ -488,11 +488,11 @@ s32 VoiceContext::DecodePcm16(s32* output_buffer, ServerWaveBuffer* wave_buffer,
488 488
489 // Fast path 489 // Fast path
490 if (channel_count == 1) { 490 if (channel_count == 1) {
491 for (std::size_t i = 0; i < samples_processed; i++) { 491 for (std::ptrdiff_t i = 0; i < samples_processed; i++) {
492 output_buffer[i] = buffer_data[i]; 492 output_buffer[i] = buffer_data[i];
493 } 493 }
494 } else { 494 } else {
495 for (std::size_t i = 0; i < samples_processed; i++) { 495 for (std::ptrdiff_t i = 0; i < samples_processed; i++) {
496 output_buffer[i] = buffer_data[i * channel_count + channel]; 496 output_buffer[i] = buffer_data[i * channel_count + channel];
497 } 497 }
498 } 498 }