diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-10-15 14:49:45 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-10-17 19:50:39 -0400 |
| commit | 18636013c938b247a97d4f379fc1fe271ff39c3a (patch) | |
| tree | 267db7ae4be88dbbc288fa605e35d4a2a13839f6 /src/audio_core/sink_context.cpp | |
| parent | 72df55f8a5c90bf8a662ab77688e4156ff90839f (diff) | |
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 0882b411af..3d713814ad 100644 --- a/src/audio_core/sink_context.cpp +++ b/src/audio_core/sink_context.cpp @@ -23,8 +23,9 @@ bool SinkContext::InUse() const { } std::vector<u8> SinkContext::OutputBuffers() const { - std::vector<u8> buffer_ret(use_count); - std::memcpy(buffer_ret.data(), buffers.data(), use_count); + const auto output_use_count = static_cast<size_t>(use_count); + std::vector<u8> buffer_ret(output_use_count); + std::memcpy(buffer_ret.data(), buffers.data(), output_use_count); return buffer_ret; } |
