projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
dc286d2
)
Fix a small warning under icc
author
Marco Costalba
<mcostalba@gmail.com>
Fri, 6 Nov 2009 09:39:33 +0000 (10:39 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Fri, 6 Nov 2009 09:39:33 +0000 (10:39 +0100)
Variable 'f' in 'for' loop scope hides same named
one in outer scope.
Of curse no functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/pawns.cpp
patch
|
blob
|
history
diff --git
a/src/pawns.cpp
b/src/pawns.cpp
index
e97dd6a
..
aefda8d
100644
(file)
--- a/
src/pawns.cpp
+++ b/
src/pawns.cpp
@@
-221,7
+221,7
@@
PawnInfoTable::Values PawnInfoTable::evaluate_pawns(const Position& pos, Bitboar
const Square* ptr = pos.piece_list_begin(Us, PAWN);
// Initialize pawn storm scores by giving bonuses for open files
- for (File f = FILE_A; f <= FILE_H; f++)
+ for (f = FILE_A; f <= FILE_H; f++)
if (!(ourPawns & file_bb(f)))
{
pi->ksStormValue[Us] += KStormOpenFileBonus[f];