mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 07:36:23 +08:00
Silence a good bunch of Intel warnings
Note that some pawns and material info has been switched to int from int8_t. This is a waste of space but it is not clear if we have a faster or slower code (or nothing changed), some test should be needed. Few warnings still are alive. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -1854,15 +1854,14 @@ Value Position::compute_value() const {
|
||||
Value Position::compute_non_pawn_material(Color c) const {
|
||||
|
||||
Value result = Value(0);
|
||||
Square s;
|
||||
|
||||
for (PieceType pt = KNIGHT; pt <= QUEEN; pt++)
|
||||
{
|
||||
Bitboard b = pieces_of_color_and_type(c, pt);
|
||||
while(b)
|
||||
while (b)
|
||||
{
|
||||
s = pop_1st_bit(&b);
|
||||
assert(piece_on(s) == piece_of_color_and_type(c, pt));
|
||||
assert(piece_on(first_1(b)) == piece_of_color_and_type(c, pt));
|
||||
pop_1st_bit(&b);
|
||||
result += piece_value_midgame(pt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user