From: Marco Costalba Date: Sat, 7 Sep 2013 10:29:05 +0000 (+0200) Subject: Fix warning: double to float truncation X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=bf51db2526c2abf4f8d9297615aa933045c68e67 Fix warning: double to float truncation MSVC 2013 says: warning C4305: '*=' : truncation from 'double' to 'float' No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 061689e8..24f1e624 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -333,7 +333,7 @@ namespace { while (++depth <= MAX_PLY && !Signals.stop && (!Limits.depth || depth <= Limits.depth)) { // Age out PV variability metric - BestMoveChanges *= 0.8; + BestMoveChanges *= 0.8f; // Save last iteration's scores before first PV line is searched and all // the move scores but the (new) PV are set to -VALUE_INFINITE.