1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23: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;
// 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
if ( (pt != PAWN && pt != KING)