]> git.sesse.net Git - stockfish/commitdiff
Partially revert pawns storm bug fix
authorMarco Costalba <mcostalba@gmail.com>
Mon, 16 Mar 2009 07:02:33 +0000 (08:02 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 16 Mar 2009 07:02:33 +0000 (08:02 +0100)
Try to save space and use the minimum size
possible.

In particular restore int16_t for values and int8_t
for halfOpenFiles.

Use int16_t for storm values insted of int and also
instead of original buggy and too small int8_t.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/pawns.h

index 673bcfa5060345002effbb8e71d5f8b739c4303b..4b61d80ecf4a7929c39145e13bdd830937c58aee 100644 (file)
@@ -58,9 +58,9 @@ private:
 
   Key key;
   Bitboard passedPawns;
 
   Key key;
   Bitboard passedPawns;
-  int mgValue, egValue;
-  int ksStormValue[2], qsStormValue[2];
-  int halfOpenFiles[2];
+  int16_t mgValue, egValue;
+  int16_t ksStormValue[2], qsStormValue[2];
+  uint8_t halfOpenFiles[2];
 };
 
 
 };