Fix upstream merge for large-board version
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 23 Mar 2019 15:02:38 +0000 (16:02 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 23 Mar 2019 15:02:38 +0000 (16:02 +0100)
src/bitboard.h

index 16039cf..568f761 100644 (file)
@@ -187,7 +187,7 @@ inline bool opposite_colors(Square s1, Square s2) {
 /// the given file or rank.
 
 inline Bitboard rank_bb(Rank r) {
-  return Rank1BB << (8 * r);
+  return Rank1BB << (FILE_NB * r);
 }
 
 inline Bitboard rank_bb(Square s) {