]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Rename pawn_rank() in relative_rank()
[stockfish] / src / position.h
index ff907d83c90cfe0c63c6646d262173e6403f6f96..80d23602132fb97ec888fc8fa948234832d77cf5 100644 (file)
 #if !defined(POSITION_H_INCLUDED)
 #define POSITION_H_INCLUDED
 
+// Disable a silly and noisy warning from MSVC compiler
+#if defined(_MSC_VER)
+
+// Forcing value to bool 'true' or 'false' (performance warning)
+#pragma warning(disable: 4800) \r
+\r
+#endif
+
 ////
 //// Includes
 ////
@@ -710,7 +718,7 @@ inline bool Position::move_is_pawn_push_to_7th(Move m) const {
   Color c = this->side_to_move();
   return 
     this->piece_on(move_from(m)) == pawn_of_color(c) &&
-    pawn_rank(c, move_to(m)) == RANK_7;
+    relative_rank(c, move_to(m)) == RANK_7;
 }
 
 inline bool Position::move_is_passed_pawn_push(Move m) const {