]> git.sesse.net Git - stockfish/commitdiff
Add const qualifer to check_is_dangerous
authorjundery <jundery@gmail.com>
Tue, 5 Feb 2013 17:06:37 +0000 (10:06 -0700)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 6 Feb 2013 06:49:40 +0000 (07:49 +0100)
No functional change.

src/search.cpp

index 5e61b9e583318c99703229b81188c22e45e61c8b..ec457609fedb9b2997c7f88c8a420c20941e88c9 100644 (file)
@@ -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);