mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Add const qualifer to check_is_dangerous
No functional change.
This commit is contained in:
+2
-2
@@ -98,7 +98,7 @@ namespace {
|
|||||||
void id_loop(Position& pos);
|
void id_loop(Position& pos);
|
||||||
Value value_to_tt(Value v, int ply);
|
Value value_to_tt(Value v, int ply);
|
||||||
Value value_from_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 allows(const Position& pos, Move first, Move second);
|
||||||
bool refutes(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);
|
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()
|
// 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);
|
Piece pc = pos.piece_moved(move);
|
||||||
Square from = from_sq(move);
|
Square from = from_sq(move);
|
||||||
|
|||||||
Reference in New Issue
Block a user