From 1781439fc2bfb12f8a4e89b2a75fdeac6cd58672 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Sun, 28 May 2017 09:58:52 +0200 Subject: [PATCH] use auto& for histories No functional change. Closes #1113 --- src/movepick.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/movepick.h b/src/movepick.h index 34cac635..a7cac4ba 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -52,7 +52,7 @@ struct ButterflyHistory : public ButterflyBoards { void update(Color c, Move m, int v) { const int D = 324; - int& entry = (*this)[c][from_to(m)]; + auto& entry = (*this)[c][from_to(m)]; assert(abs(v) <= D); // Consistency check for below formula @@ -68,7 +68,7 @@ struct PieceToHistory : public PieceToBoards { void update(Piece pc, Square to, int v) { const int D = 936; - int& entry = (*this)[pc][to]; + auto& entry = (*this)[pc][to]; assert(abs(v) <= D); // Consistency check for below formula -- 2.39.2