projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9d95d43
)
Fix a warning with MSVC
author
Marco Costalba
<mcostalba@gmail.com>
Thu, 31 Aug 2017 07:01:20 +0000 (09:01 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Fri, 1 Sep 2017 18:23:31 +0000 (20:23 +0200)
warning C4244: '*=': conversion from 'double' to 'int', possible loss of data
No functional change.
src/timeman.cpp
patch
|
blob
|
history
diff --git
a/src/timeman.cpp
b/src/timeman.cpp
index
330709b
..
2612fb5
100644
(file)
--- a/
src/timeman.cpp
+++ b/
src/timeman.cpp
@@
-64,7
+64,7
@@
namespace {
int time = int(std::min(1.0, ratio) * std::max(0, myTime - moveOverhead));
if (type == OptimumTime && ponder)
- time *= 1.25;
+ time = 5 * time / 4;
return time;
}