projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8f2c1c5
)
Fix a bug in generate_pawn_captures()
author
Marco Costalba
<mcostalba@gmail.com>
Tue, 21 Oct 2008 23:12:16 +0000 (
00:12
+0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Thu, 23 Oct 2008 05:17:04 +0000 (07:17 +0200)
Introduced in "movegen: Introduce generate_pawn_captures()"
when unifiying black and white functions.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/movegen.cpp
patch
|
blob
|
history
diff --git
a/src/movegen.cpp
b/src/movegen.cpp
index
19cd468
..
e7c78bb
100644
(file)
--- a/
src/movegen.cpp
+++ b/
src/movegen.cpp
@@
-673,7
+673,7
@@
namespace {
}
// Non-capturing promotions
- b1 = (Us == WHITE ? pawns << 8 : pawns >> 8) & pos.empty_squares() & Rank8BB;
+ b1 = (Us == WHITE ? pawns << 8 : pawns >> 8) & pos.empty_squares() & TRank8BB;
while (b1)
{
sq = pop_1st_bit(&b1);