X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=ba1af2f2865f28865791178206add9752a392889;hp=4ea69ebc757df81fbea8f70d79e1d54c7d568446;hb=f256388e0808b45d8468b088cdc141a41feac3fb;hpb=db4b0d8b7db8db15c16a71212990354094f00b0d diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 4ea69ebc..ba1af2f2 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -81,11 +81,13 @@ namespace { /// Software fall-back of lsb() and msb() for CPU lacking hardware support Square lsb(Bitboard b) { + assert(b); return BSFTable[bsf_index(b)]; } Square msb(Bitboard b) { + assert(b); unsigned b32; int result = 0;