summaryrefslogtreecommitdiffstats
path: root/src/common/algorithm.h
diff options
context:
space:
mode:
authorLiam White <yteslice@airmail.cc>2022-04-13 21:02:55 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:53 +0200
commitafab6c143cb486c7d14f1509cd04049ad08d3a65 (patch)
treefb3a35b23be7dd5b2c502ec550c027760257c6f3 /src/common/algorithm.h
parentVideoCore: Implement formats needed for N64 emulation. (diff)
downloadyuzu-afab6c143cb486c7d14f1509cd04049ad08d3a65.tar
yuzu-afab6c143cb486c7d14f1509cd04049ad08d3a65.tar.gz
yuzu-afab6c143cb486c7d14f1509cd04049ad08d3a65.tar.bz2
yuzu-afab6c143cb486c7d14f1509cd04049ad08d3a65.tar.lz
yuzu-afab6c143cb486c7d14f1509cd04049ad08d3a65.tar.xz
yuzu-afab6c143cb486c7d14f1509cd04049ad08d3a65.tar.zst
yuzu-afab6c143cb486c7d14f1509cd04049ad08d3a65.zip
Diffstat (limited to '')
-rw-r--r--src/common/algorithm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/algorithm.h b/src/common/algorithm.h
index 055dca142..c27c9241d 100644
--- a/src/common/algorithm.h
+++ b/src/common/algorithm.h
@@ -27,7 +27,7 @@ template <class ForwardIt, class T, class Compare = std::less<>>
template <typename T, typename Func, typename... Args>
T FoldRight(T initial_value, Func&& func, Args&&... args) {
T value{initial_value};
- const auto high_func = [&value, &func]<typename T>(T x) { value = func(value, x); };
+ const auto high_func = [&value, &func]<typename U>(U x) { value = func(value, x); };
(std::invoke(high_func, std::forward<Args>(args)), ...);
return value;
}