Skip to content

Commit

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

Closes official-stockfish#1113
  • Loading branch information
vondele authored and SapphireBrand committed Jun 9, 2017
1 parent 6904ff4 commit 5ea6415
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 5ea6415

Please sign in to comment.