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:
parent
6373e88b5b
commit
d30dfc084c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue