]> git.sesse.net Git - stockfish/commitdiff
Fix compile errors in debug mode
authorMarco Costalba <mcostalba@gmail.com>
Sat, 20 Jun 2009 18:18:00 +0000 (19:18 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 20 Jun 2009 18:18:00 +0000 (19:18 +0100)
Fall out of move_promotion() rename

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/position.cpp
src/search.cpp

index 64b833857b9976080db3b587715e8319f5da8e39..e7a5732bb9d3f49b8dd201173a7029211d99518d 100644 (file)
@@ -982,7 +982,7 @@ void Position::do_promotion_move(Move m) {
 
   assert(is_ok());
   assert(move_is_ok(m));
-  assert(move_promotion(m));
+  assert(move_is_promotion(m));
 
   us = side_to_move();
   them = opposite_color(us);
@@ -1290,7 +1290,7 @@ void Position::undo_promotion_move(Move m) {
   PieceType promotion;
 
   assert(move_is_ok(m));
-  assert(move_promotion(m));
+  assert(move_is_promotion(m));
 
   // When we have arrived here, some work has already been done by
   // Position::undo_move.  In particular, the side to move has been switched,
index 6b6ad24816255acb0e06601954b736e141bd5d8b..70bd1eab463968717a38c9262a65409baada9a09 100644 (file)
@@ -2278,7 +2278,7 @@ namespace {
 
     assert(move_is_ok(m));
     assert(threat == MOVE_NONE || move_is_ok(threat));
-    assert(!move_promotion(m));
+    assert(!move_is_promotion(m));
     assert(!pos.move_is_check(m));
     assert(!pos.move_is_capture(m));
     assert(!pos.move_is_passed_pawn_push(m));