Skip to content

Commit

Permalink
最下位ビット以外が1になる場合があるバグ修正 (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
TadaoYamaoka authored Jan 3, 2025
1 parent 74d9b0e commit b9b886b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/bitboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ inline Bitboard least_significant_square_bb(Bitboard b) {

u64 q0 = b.extract64<0>();
u64 q1 = b.extract64<1>();
return (q0 != 0) ? Bitboard(q0 & -q0 , q1) : Bitboard(q0, q1 & -q1);
return (q0 != 0) ? Bitboard(q0 & -q0 , 0) : Bitboard(0, q1 & -q1);
}


Expand Down

0 comments on commit b9b886b

Please sign in to comment.