From 80d9cba17194c91883f99f810131827ba4101442 Mon Sep 17 00:00:00 2001 From: yjf2002ghty Date: Sun, 5 May 2024 20:57:43 +0800 Subject: [PATCH] test --- src/bitboard.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bitboard.h b/src/bitboard.h index e85a8a07a..87957d4cd 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -667,8 +667,7 @@ inline Bitboard least_significant_square_bb(Bitboard b) { inline Square pop_lsb(Bitboard& b) { assert(b); - Bitboard b2 = b; - const Square s = lsb(b2); + const Square s = lsb(b); b &= b - 1; return s; }