From 054d32567d70e4602a75e8ce61a51daffdb805e0 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Mon, 19 Sep 2022 14:45:00 +0100 Subject: [PATCH] Allow mutation of input data by callback in CircularQueue::AppendTranform --- app/src/main/cpp/skyline/common/circular_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/common/circular_queue.h b/app/src/main/cpp/skyline/common/circular_queue.h index 50ef3995..7644d30f 100644 --- a/app/src/main/cpp/skyline/common/circular_queue.h +++ b/app/src/main/cpp/skyline/common/circular_queue.h @@ -126,7 +126,7 @@ namespace skyline { template void AppendTranform(span buffer, Transformation transformation) { std::unique_lock lock(productionMutex); - for (const auto &item : buffer) { + for (auto &item : buffer) { auto next{end + 1}; next = (next == reinterpret_cast(vector.end().base())) ? reinterpret_cast(vector.begin().base()) : next; if (next == start) {