diff options
| author | 2019-11-12 05:28:47 -0500 | |
|---|---|---|
| committer | 2019-11-12 07:55:39 -0500 | |
| commit | 75dec14f216a48c8e70946e9da646a2e5273925e (patch) | |
| tree | 838cc750e870b4cbf399a9bae3c5e6b2362f7800 /src/core/perf_stats.cpp | |
| parent | loader; Resolve sign conversion/truncation errors (diff) | |
| download | yuzu-75dec14f216a48c8e70946e9da646a2e5273925e.tar.gz yuzu-75dec14f216a48c8e70946e9da646a2e5273925e.tar.xz yuzu-75dec14f216a48c8e70946e9da646a2e5273925e.zip | |
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 d2c69d1a0..f1ae9d4df 100644 --- a/src/core/perf_stats.cpp +++ b/src/core/perf_stats.cpp | |||
| @@ -81,7 +81,7 @@ double PerfStats::GetMeanFrametime() { | |||
| 81 | return 0; | 81 | return 0; |
| 82 | } | 82 | } |
| 83 | const double sum = std::accumulate(perf_history.begin() + IgnoreFrames, | 83 | const double sum = std::accumulate(perf_history.begin() + IgnoreFrames, |
| 84 | perf_history.begin() + current_index, 0); | 84 | perf_history.begin() + current_index, 0.0); |
| 85 | return sum / (current_index - IgnoreFrames); | 85 | return sum / (current_index - IgnoreFrames); |
| 86 | } | 86 | } |
| 87 | 87 | ||