mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Fix a compilation error for MSVC
The previous commit wouldn't compile on the Microsoft Virtual Studio C++ compiler. So use a more compatible style for the same idea (which we already use in numerous places of evaluate.cpp, for instance in line 563). Under the Clang compiler, both versions generate exactly the same machine code (same md5 signatures for the two binaries). No functional change.
This commit is contained in:
parent
e12fc10b5c
commit
9ca014df49
1 changed files with 2 additions and 2 deletions
|
@ -636,8 +636,8 @@ namespace {
|
|||
|
||||
assert(!(pos.pieces(Them, PAWN) & forward_file_bb(Us, s + Up)));
|
||||
|
||||
bb = forward_file_bb(Us, s) & pos.pieces(Them);
|
||||
score -= HinderPassedPawn * bool(bb);
|
||||
if (forward_file_bb(Us, s) & pos.pieces(Them))
|
||||
score -= HinderPassedPawn;
|
||||
|
||||
int r = relative_rank(Us, s);
|
||||
int w = PassedDanger[r];
|
||||
|
|
Loading…
Add table
Reference in a new issue