Skip to content

Commit

Permalink
use auto& for histories
Browse files Browse the repository at this point in the history
No functional change.

Closes #1113
  • Loading branch information
vondele authored and zamar committed Jun 6, 2017
1 parent ecd3218 commit 1781439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/movepick.h
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 1781439

Please sign in to comment.