1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Annotate an unlikely condition

No functional change.
This commit is contained in:
Marco Costalba 2013-07-27 11:34:15 +02:00
parent 6373e88b5b
commit d30dfc084c

View file

@ -652,7 +652,7 @@ bool Position::move_gives_check(Move m, const CheckInfo& ci) const {
return true; return true;
// Discovery check ? // Discovery check ?
if (ci.dcCandidates && (ci.dcCandidates & from)) if (unlikely(ci.dcCandidates) && (ci.dcCandidates & from))
{ {
// For pawn and king moves we need to verify also direction // For pawn and king moves we need to verify also direction
if ( (pt != PAWN && pt != KING) if ( (pt != PAWN && pt != KING)