while (b)
{
Move move = make_move(pop_lsb(&b), to);
- if (!pos.legal(move, pos.pinned_pieces()))
+ if (!pos.legal(move, pos.pinned_pieces(pos.side_to_move())))
others ^= from_sq(move);
}
s << "-#" << (VALUE_MATE + v) / 2;
else
- s << setprecision(2) << fixed << showpos << float(v) / PawnValueMg;
+ s << setprecision(2) << fixed << showpos << double(v) / PawnValueMg;
return s.str();
}