diff options
| author | 2020-10-15 14:49:45 -0400 | |
|---|---|---|
| committer | 2020-10-17 19:50:39 -0400 | |
| commit | be1954e04cb5a0c3a526f78ed5490a5e65310280 (patch) | |
| tree | 267db7ae4be88dbbc288fa605e35d4a2a13839f6 /src/audio_core/sink_context.cpp | |
| parent | Merge pull request #4787 from lioncash/conversion (diff) | |
| download | yuzu-be1954e04cb5a0c3a526f78ed5490a5e65310280.tar.gz yuzu-be1954e04cb5a0c3a526f78ed5490a5e65310280.tar.xz yuzu-be1954e04cb5a0c3a526f78ed5490a5e65310280.zip | |
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
Diffstat (limited to 'src/audio_core/sink_context.cpp')
| -rw-r--r-- | src/audio_core/sink_context.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/audio_core/sink_context.cpp b/src/audio_core/sink_context.cpp index 0882b411a..3d713814a 100644 --- a/src/audio_core/sink_context.cpp +++ b/src/audio_core/sink_context.cpp | |||
| @@ -23,8 +23,9 @@ bool SinkContext::InUse() const { | |||
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | std::vector<u8> SinkContext::OutputBuffers() const { | 25 | std::vector<u8> SinkContext::OutputBuffers() const { |
| 26 | std::vector<u8> buffer_ret(use_count); | 26 | const auto output_use_count = static_cast<size_t>(use_count); |
| 27 | std::memcpy(buffer_ret.data(), buffers.data(), use_count); | 27 | std::vector<u8> buffer_ret(output_use_count); |
| 28 | std::memcpy(buffer_ret.data(), buffers.data(), output_use_count); | ||
| 28 | return buffer_ret; | 29 | return buffer_ret; |
| 29 | } | 30 | } |
| 30 | 31 | ||