From: Reuven Peleg Date: Thu, 8 May 2014 20:18:19 +0000 (+0300) Subject: Pass Position as const ref in update_stats() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=f89a8f0769d3c61edf0993721b03058a0c463bda;ds=sidebyside Pass Position as const ref in update_stats() No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 74851fb2..f2f640da 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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) {