mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Replace Remaining Types
Somehow a few size_t slipped through https://github.com/official-stockfish/Stockfish/pull/6874 closes https://github.com/official-stockfish/Stockfish/pull/6897 No functional change
This commit is contained in:
+2
-1
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "benchmark.h"
|
||||
#include "numa.h"
|
||||
#include "misc.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
@@ -483,7 +484,7 @@ BenchmarkSetup setup_benchmark(std::istream& is) {
|
||||
|
||||
float totalTime = 0;
|
||||
for (const auto& game : BenchmarkPositions)
|
||||
for (size_t i = 0; i < game.size(); ++i)
|
||||
for (usize i = 0; i < game.size(); ++i)
|
||||
totalTime += float(getCorrectedTime(i + 1));
|
||||
|
||||
float timeScaleFactor = static_cast<float>(desiredTimeS * 1000) / totalTime;
|
||||
|
||||
Reference in New Issue
Block a user