X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=ec457609fedb9b2997c7f88c8a420c20941e88c9;hp=5e61b9e583318c99703229b81188c22e45e61c8b;hb=f69c185e02b4ab33d19cea6e143ad0beac05c7c7;hpb=bf706c4a4ff06e91edf8c24685d24130146f88d4 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);