#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
////
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 {