From: jundery Date: Tue, 5 Feb 2013 17:06:37 +0000 (-0700) Subject: Add const qualifer to check_is_dangerous X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=f69c185e02b4ab33d19cea6e143ad0beac05c7c7;hp=bf706c4a4ff06e91edf8c24685d24130146f88d4 Add const qualifer to check_is_dangerous No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 5e61b9e5..ec457609 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -98,7 +98,7 @@ namespace { void id_loop(Position& pos); Value value_to_tt(Value v, int ply); Value value_from_tt(Value v, int ply); - bool check_is_dangerous(Position& pos, Move move, Value futilityBase, Value beta); + bool check_is_dangerous(const Position& pos, Move move, Value futilityBase, Value beta); bool allows(const Position& pos, Move first, Move second); bool refutes(const Position& pos, Move first, Move second); string uci_pv(const Position& pos, int depth, Value alpha, Value beta); @@ -1335,7 +1335,7 @@ split_point_start: // At split points actual search starts from here // check_is_dangerous() tests if a checking move can be pruned in qsearch() - bool check_is_dangerous(Position& pos, Move move, Value futilityBase, Value beta) + bool check_is_dangerous(const Position& pos, Move move, Value futilityBase, Value beta) { Piece pc = pos.piece_moved(move); Square from = from_sq(move);