projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ffdf63f
)
Retire last usage of operator|(File f, Rank r)
author
Marco Costalba
<mcostalba@gmail.com>
Sun, 23 Mar 2014 09:42:37 +0000 (10:42 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sun, 23 Mar 2014 09:42:37 +0000 (10:42 +0100)
This for some reason was missed.
No functional change.
src/bitboard.cpp
patch
|
blob
|
history
diff --git
a/src/bitboard.cpp
b/src/bitboard.cpp
index
6df2efe
..
d4b8bcf
100644
(file)
--- a/
src/bitboard.cpp
+++ b/
src/bitboard.cpp
@@
-134,7
+134,7
@@
const std::string Bitboards::pretty(Bitboard b) {
for (Rank rank = RANK_8; rank >= RANK_1; --rank)
{
for (File file = FILE_A; file <= FILE_H; ++file)
- s.append(b & (file | rank) ? "| X " : "| ");
+ s.append(b & make_square(file, rank) ? "| X " : "| ");
s.append("|\n+---+---+---+---+---+---+---+---+\n");
}