]> git.sesse.net Git - stockfish/commitdiff
Fix another conversion warning: Bitboard->int
authorMarco Costalba <mcostalba@gmail.com>
Thu, 18 Sep 2008 08:53:53 +0000 (09:53 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 18 Sep 2008 10:26:31 +0000 (12:26 +0200)
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/evaluate.cpp

index 48cbfc13b169118492886c0e6d1e41494c1396d0..46ddfe5c80046933bc018bf5c26ff92ba2d8e927 100644 (file)
@@ -259,7 +259,7 @@ namespace {
   Value apply_weight(Value v, int w);
   Value scale_by_game_phase(Value mv, Value ev, Phase ph, ScaleFactor sf[]);
 
   Value apply_weight(Value v, int w);
   Value scale_by_game_phase(Value mv, Value ev, Phase ph, ScaleFactor sf[]);
 
-  int count_1s_8bit(int b);
+  int count_1s_8bit(Bitboard b);
 
   int compute_weight(int uciWeight, int internalWeight);
   void init_safety();
 
   int compute_weight(int uciWeight, int internalWeight);
   void init_safety();
@@ -1162,10 +1162,10 @@ namespace {
 
 
   // count_1s_8bit() counts the number of nonzero bits in the 8 least
 
 
   // count_1s_8bit() counts the number of nonzero bits in the 8 least
-  // significant bits of an integer.  This function is used by the king
+  // significant bits of a Bitboard. This function is used by the king
   // shield evaluation.
   
   // shield evaluation.
   
-  int count_1s_8bit(int b) {
+  int count_1s_8bit(Bitboard b) {
     return int(BitCount8Bit[b & 0xFF]);
   }
 
     return int(BitCount8Bit[b & 0xFF]);
   }