Skip to content

Commit

Permalink
Annotate an unlikely condition
Browse files Browse the repository at this point in the history
No functional change.
  • Loading branch information
mcostalba committed Jul 27, 2013
1 parent 6373e88 commit d30dfc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit d30dfc0

Please sign in to comment.