projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6a48325
)
Fix a wrong check in pos_is_ok()
author
Marco Costalba
<mcostalba@gmail.com>
Mon, 20 Feb 2012 18:32:15 +0000 (19:32 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Mon, 20 Feb 2012 18:34:43 +0000 (19:34 +0100)
Bug introduced by revision
a44c5cf4f77b05a038
of 3/12/2011.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/position.cpp
patch
|
blob
|
history
diff --git
a/src/position.cpp
b/src/position.cpp
index
dec3371
..
9376aa9
100644
(file)
--- a/
src/position.cpp
+++ b/
src/position.cpp
@@
-1677,7
+1677,7
@@
bool Position::pos_is_ok(int* failedStep) const {
if (debugBitboards)
{
// The intersection of the white and black pieces must be empty
- if (!(pieces(WHITE) & pieces(BLACK)))
+ if (pieces(WHITE) & pieces(BLACK))
return false;
// The union of the white and black pieces must be equal to all