mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Fix one error and all warnings on MSVC 2026
The error is "C1001: Internal compiler error." in uci.cpp on line 370 of master. For some reason the compiler can't handle the std::size(hashfullAges) inside the lambda. Older MSVC versions had no problem. Most of the warnings are due to implicit type conversions "conversion from type A to type B, possible loss of data" many of which have been present for a while. closes https://github.com/official-stockfish/Stockfish/pull/6464 No functional change
This commit is contained in:
+2
-2
@@ -454,7 +454,7 @@ BenchmarkSetup setup_benchmark(std::istream& is) {
|
||||
int desiredTimeS;
|
||||
|
||||
if (!(is >> setup.threads))
|
||||
setup.threads = get_hardware_concurrency();
|
||||
setup.threads = int(get_hardware_concurrency());
|
||||
else
|
||||
setup.originalInvocation += std::to_string(setup.threads);
|
||||
|
||||
@@ -486,7 +486,7 @@ BenchmarkSetup setup_benchmark(std::istream& is) {
|
||||
int ply = 1;
|
||||
for (int i = 0; i < static_cast<int>(game.size()); ++i)
|
||||
{
|
||||
const float correctedTime = getCorrectedTime(ply);
|
||||
const float correctedTime = float(getCorrectedTime(ply));
|
||||
totalTime += correctedTime;
|
||||
ply += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user