mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Use bool(Bitboard b) instead of !!b (#1321)
The idiom !!b is confusing newcomers (e.g. Stefan needs explaining here https://groups.google.com/d/msg/fishcooking/vYqnsRI4brY/Gaf60QuACwAJ). No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
28b6a457c2
commit
2acda1fde3
+1
-1
@@ -1115,7 +1115,7 @@ moves_loop: // When in check search starts from here
|
||||
|
||||
const bool PvNode = NT == PV;
|
||||
|
||||
assert(InCheck == !!pos.checkers());
|
||||
assert(InCheck == bool(pos.checkers()));
|
||||
assert(alpha >= -VALUE_INFINITE && alpha < beta && beta <= VALUE_INFINITE);
|
||||
assert(PvNode || (alpha == beta - 1));
|
||||
assert(depth <= DEPTH_ZERO);
|
||||
|
||||
Reference in New Issue
Block a user