From 75dec14f216a48c8e70946e9da646a2e5273925e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Nov 2019 05:28:47 -0500 Subject: perf_stats: Resolve implicit int to double conversion error We simply need to turn the literal argument to std::accumulate into a double, rather than an int. --- src/core/perf_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/perf_stats.cpp') diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp index d2c69d1a0..f1ae9d4df 100644 --- a/src/core/perf_stats.cpp +++ b/src/core/perf_stats.cpp @@ -81,7 +81,7 @@ double PerfStats::GetMeanFrametime() { return 0; } const double sum = std::accumulate(perf_history.begin() + IgnoreFrames, - perf_history.begin() + current_index, 0); + perf_history.begin() + current_index, 0.0); return sum / (current_index - IgnoreFrames); } -- cgit v1.2.3