projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
59702ac
)
Fix warning: double to float truncation
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 7 Sep 2013 10:29:05 +0000 (12:29 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 7 Sep 2013 10:30:44 +0000 (12:30 +0200)
MSVC 2013 says:
warning C4305: '*=' : truncation from 'double' to 'float'
No functional change.
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
061689e
..
24f1e62
100644
(file)
--- 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.