Pass Position as const ref in update_stats()

No functional change.
This commit is contained in:
Reuven Peleg
2014-05-08 23:18:19 +03:00
committed by Marco Costalba
parent 6ba1d3ead6
commit f89a8f0769

View File

@@ -94,7 +94,7 @@ namespace {
void id_loop(Position& pos);
Value value_to_tt(Value v, int ply);
Value value_from_tt(Value v, int ply);
void update_stats(Position& pos, Stack* ss, Move move, Depth depth, Move* quiets, int quietsCnt);
void update_stats(const Position& pos, Stack* ss, Move move, Depth depth, Move* quiets, int quietsCnt);
string uci_pv(const Position& pos, int depth, Value alpha, Value beta);
struct Skill {
@@ -1267,7 +1267,7 @@ moves_loop: // When in check and at SpNode search starts from here
// update_stats() updates killers, history, countermoves and followupmoves stats after a fail-high
// of a quiet move.
void update_stats(Position& pos, Stack* ss, Move move, Depth depth, Move* quiets, int quietsCnt) {
void update_stats(const Position& pos, Stack* ss, Move move, Depth depth, Move* quiets, int quietsCnt) {
if (ss->killers[0] != move)
{