Skip to content

Commit

Permalink
Fix warning: double to float truncation
Browse files Browse the repository at this point in the history
MSVC 2013 says:
warning C4305: '*=' : truncation from 'double' to 'float'

No functional change.
  • Loading branch information
mcostalba committed Sep 7, 2013
1 parent 59702ac commit bf51db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit bf51db2

Please sign in to comment.