From 2f5012a3eb560049fb1a0b6977d0895b845d104e Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 18 Sep 2008 09:53:53 +0100 Subject: [PATCH] Fix another conversion warning: Bitboard->int Signed-off-by: Marco Costalba --- src/evaluate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 48cbfc13..46ddfe5c 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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[]); - int count_1s_8bit(int b); + int count_1s_8bit(Bitboard b); 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 - // 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. - int count_1s_8bit(int b) { + int count_1s_8bit(Bitboard b) { return int(BitCount8Bit[b & 0xFF]); } -- 2.39.2