projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d42752
)
max_piece_type cleanup, and slight speed increase.
author
mstembera
<MissingEmail@email>
Tue, 28 Oct 2014 14:23:01 +0000
(22:23 +0800)
committer
Gary Linscott
<glinscott@gmail.com>
Tue, 28 Oct 2014 14:23:01 +0000
(22:23 +0800)
No functional change.
Resolves #81
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
e4ade31
..
c915fbf
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-499,12
+499,11
@@
namespace {
assert(target & (pos.pieces(C) ^ pos.pieces(C, KING)));
- PieceType pt;
- for (pt = QUEEN; pt > PAWN; --pt)
+ for (PieceType pt = QUEEN; pt > PAWN; --pt)
if (target & pos.pieces(C, pt))
return pt;
- return
pt
;
+ return
PAWN
;
}