X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsquare.h;fp=src%2Fsquare.h;h=46456d0677c88fed74609a2a9654e68245ba830a;hp=f89c72eefe6b770075594b7092ca1b42d1ce9185;hb=5fc8f86a4f37de0e919c163c81f04b8717a70d3f;hpb=c14dae1fa20507e3f3c729ee9de6ed55ab11dba6 diff --git a/src/square.h b/src/square.h index f89c72ee..46456d06 100644 --- a/src/square.h +++ b/src/square.h @@ -177,7 +177,7 @@ inline bool rank_is_ok(Rank r) { } inline bool square_is_ok(Square s) { - return file_is_ok(square_file(s)) && rank_is_ok(square_rank(s)); + return s >= SQ_A1 && s <= SQ_H8; } #endif // !defined(SQUARE_H_INCLUDED)