Skip to content

Commit

Permalink
Add const qualifer to check_is_dangerous
Browse files Browse the repository at this point in the history
No functional change.
  • Loading branch information
jundery authored and mcostalba committed Feb 6, 2013
1 parent bf706c4 commit f69c185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -1335,7 +1335,7 @@ namespace {

// 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);
Expand Down

0 comments on commit f69c185

Please sign in to comment.