1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Zero init fromToStats in constructor. (#953)

Extend commit fe99de to fromToStats, which fixes the last valgrind errors on 
a simple 'go depth 12' at startup.

No functional change.
This commit is contained in:
Joost VandeVondele 2017-01-06 10:43:18 +01:00 committed by Marco Costalba
parent 8b2c81d3ea
commit 90b052462c

View file

@ -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) {