X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;fp=src%2Fbitboard.h;h=c663f4bd1f7db28798fb21a197f05c4a4dc95a50;hp=70835e8eeff144ef08c7b19753933ea18ca7798e;hb=ec42154ef2569a58dae2164e328d5bbffcb2aee9;hpb=ace9632c6713e346ccca73b3e2edc046c1f5527c diff --git a/src/bitboard.h b/src/bitboard.h index 70835e8e..c663f4bd 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -428,10 +428,10 @@ inline Bitboard least_significant_square_bb(Bitboard b) { /// pop_lsb() finds and clears the least significant bit in a non-zero bitboard -inline Square pop_lsb(Bitboard* b) { - assert(*b); - const Square s = lsb(*b); - *b &= *b - 1; +inline Square pop_lsb(Bitboard& b) { + assert(b); + const Square s = lsb(b); + b &= b - 1; return s; }