From b9b886b933785fd92d324277fee8c44abb2de336 Mon Sep 17 00:00:00 2001 From: TadaoYamaoka Date: Fri, 3 Jan 2025 22:20:45 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E4=B8=8B=E4=BD=8D=E3=83=93=E3=83=83?= =?UTF-8?q?=E3=83=88=E4=BB=A5=E5=A4=96=E3=81=8C1=E3=81=AB=E3=81=AA?= =?UTF-8?q?=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=8C=E3=81=82=E3=82=8B=E3=83=90?= =?UTF-8?q?=E3=82=B0=E4=BF=AE=E6=AD=A3=20(#297)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/bitboard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/bitboard.h b/source/bitboard.h index 85b4501c9..e1aa01fb8 100644 --- a/source/bitboard.h +++ b/source/bitboard.h @@ -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); }