From 90b052462cc473ee03df0e1613d1c9f81ca99887 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Fri, 6 Jan 2017 10:43:18 +0100 Subject: [PATCH 1/1] 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. --- src/movepick.h | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.2