diff options
| author | 2020-09-27 01:52:59 -0700 | |
|---|---|---|
| committer | 2020-09-27 01:52:59 -0700 | |
| commit | a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf (patch) | |
| tree | 2ffdcbce07231caba437d6ac1cbfe23f3a02f16e /src/audio_core/splitter_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.gz yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.tar.xz yuzu-a8be822e8eb5cda83b09bcf6c1478b8bef2f2caf.zip | |
Merge pull request #4719 from lioncash/audio-warn
audio_core: Resolve sign conversion warnings
Diffstat (limited to 'src/audio_core/splitter_context.cpp')
| -rw-r--r-- | src/audio_core/splitter_context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio_core/splitter_context.cpp b/src/audio_core/splitter_context.cpp index 79bb2f516..f21b53147 100644 --- a/src/audio_core/splitter_context.cpp +++ b/src/audio_core/splitter_context.cpp | |||
| @@ -306,7 +306,7 @@ bool SplitterContext::UpdateInfo(const std::vector<u8>& input, std::size_t& inpu | |||
| 306 | break; | 306 | break; |
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | if (header.send_id < 0 || header.send_id > info_count) { | 309 | if (header.send_id < 0 || static_cast<std::size_t>(header.send_id) > info_count) { |
| 310 | LOG_ERROR(Audio, "Bad splitter data id"); | 310 | LOG_ERROR(Audio, "Bad splitter data id"); |
| 311 | break; | 311 | break; |
| 312 | } | 312 | } |
| @@ -348,7 +348,7 @@ bool SplitterContext::UpdateData(const std::vector<u8>& input, std::size_t& inpu | |||
| 348 | break; | 348 | break; |
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | if (header.splitter_id < 0 || header.splitter_id > data_count) { | 351 | if (header.splitter_id < 0 || static_cast<std::size_t>(header.splitter_id) > data_count) { |
| 352 | LOG_ERROR(Audio, "Bad splitter data id"); | 352 | LOG_ERROR(Audio, "Bad splitter data id"); |
| 353 | break; | 353 | break; |
| 354 | } | 354 | } |
| @@ -434,7 +434,7 @@ const std::vector<s32>& NodeStates::GetIndexList() const { | |||
| 434 | } | 434 | } |
| 435 | 435 | ||
| 436 | void NodeStates::PushTsortResult(s32 index) { | 436 | void NodeStates::PushTsortResult(s32 index) { |
| 437 | ASSERT(index < node_count); | 437 | ASSERT(index < static_cast<s32>(node_count)); |
| 438 | index_list[index_pos++] = index; | 438 | index_list[index_pos++] = index; |
| 439 | } | 439 | } |
| 440 | 440 | ||