projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8b2c81d
)
Zero init fromToStats in constructor. (#953)
author
Joost VandeVondele
<Joost.VandeVondele@gmail.com>
Fri, 6 Jan 2017 09:43:18 +0000 (10:43 +0100)
committer
Marco Costalba
<mcostalba@users.noreply.github.com>
Fri, 6 Jan 2017 09:43:18 +0000 (10:43 +0100)
Extend commit fe99de to fromToStats, which fixes the last valgrind errors on
a simple 'go depth 12' at startup.
No functional change.
src/movepick.h
patch
|
blob
|
history
diff --git
a/src/movepick.h
b/src/movepick.h
index
999ec96
..
06a2efc
100644
(file)
--- a/
src/movepick.h
+++ b/
src/movepick.h
@@
-66,6
+66,7
@@
typedef Stats<CounterMoveStats> CounterMoveHistoryStats;
struct FromToStats {
+ FromToStats() { clear(); }
Value get(Color c, Move m) const { return table[c][from_sq(m)][to_sq(m)]; }
void clear() { std::memset(table, 0, sizeof(table)); }
void update(Color c, Move m, Value v) {