From: Joost VandeVondele Date: Fri, 6 Jan 2017 09:43:18 +0000 (+0100) Subject: Zero init fromToStats in constructor. (#953) X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=90b052462cc473ee03df0e1613d1c9f81ca99887 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. --- diff --git a/src/movepick.h b/src/movepick.h index 999ec966..06a2efca 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -66,6 +66,7 @@ typedef Stats 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) {