X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=80d23602132fb97ec888fc8fa948234832d77cf5;hp=ff907d83c90cfe0c63c6646d262173e6403f6f96;hb=f56af8e84db25c0d26fe762fbe171ec5518177bb;hpb=bb751d6c890f5c50c642366d601740366cfae8d0 diff --git a/src/position.h b/src/position.h index ff907d83..80d23602 100644 --- a/src/position.h +++ b/src/position.h @@ -20,6 +20,14 @@ #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) + +#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 {