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:
mstembera
2025-12-21 15:43:32 +01:00
committed by Disservin
parent 8449e5eb9d
commit e1c919fd7e
7 changed files with 23 additions and 19 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ void TimeManagement::init(Search::LimitsType& limits,
// If less than one second, gradually reduce mtg
if (scaledTime < 1000)
centiMTG = scaledTime * 5.051;
centiMTG = int(scaledTime * 5.051);
// Make sure timeLeft is > 0 since we may use it as a divisor
TimePoint timeLeft =