diff options
| author | Djihads <76681596+Djihads80@users.noreply.github.com> | 2026-10-30 11:33:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-30 11:33:03 +0100 |
| commit | 9560dec549134cf50a7bcde3f86f87ed7658b25f (patch) | |
| tree | 75493cfac29ed9d1dc350658e17c366f7e10a3c4 /src/yuzu_cmd/nx2_sampler.cpp | |
| parent | 666d2447639594c7cd2b184acf2117b38766ac22 (diff) | |
| parent | 937bb4dd30401a339a062386c121b9714e33e38d (diff) | |
Merge pull request #26 from Djihads80/nx2-experimental
Nx2 experimental
Diffstat (limited to 'src/yuzu_cmd/nx2_sampler.cpp')
| -rw-r--r-- | src/yuzu_cmd/nx2_sampler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu_cmd/nx2_sampler.cpp b/src/yuzu_cmd/nx2_sampler.cpp index c01b812650..1488a3a078 100644 --- a/src/yuzu_cmd/nx2_sampler.cpp +++ b/src/yuzu_cmd/nx2_sampler.cpp @@ -240,9 +240,9 @@ void Report(const std::vector<Target>& targets, const std::vector<Sample>& sampl } std::sort(sorted.rbegin(), sorted.rend()); std::fprintf(file, "-- %s\n", title); - for (size_t i = 0; i < std::min(limit, sorted.size()); ++i) { + for (size_t i = 0; i < (std::min)(limit, sorted.size()); ++i) { std::fprintf(file, "%6u %5.1f%% %s\n", sorted[i].first, - 100.0 * sorted[i].first / std::max(total, 1U), + 100.0 * sorted[i].first / (std::max)(total, 1U), sorted[i].second.c_str()); } }; |
