diff options
author | Lioncash <mathew1800@gmail.com> | 2019-11-12 05:28:47 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-11-12 07:55:39 -0500 |
commit | 75dec14f216a48c8e70946e9da646a2e5273925e (patch) | |
tree | 838cc750e870b4cbf399a9bae3c5e6b2362f7800 /src/core/perf_stats.cpp | |
parent | 23878bf360b95561729ee1208118cb8e13b6aeca (diff) |
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.
Diffstat (limited to 'src/core/perf_stats.cpp')
-rw-r--r-- | src/core/perf_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp index d2c69d1a07..f1ae9d4df5 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); } |