]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Fix a small warning under icc
[stockfish] / src / pawns.cpp
index e97dd6a4a9763f894c913f23c7be08576436ccd0..aefda8d2e9d3f44110a8d41fc55b0b16b73c66a7 100644 (file)
@@ -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
   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];
       if (!(ourPawns & file_bb(f)))
       {
           pi->ksStormValue[Us] += KStormOpenFileBonus[f];