fixed implicit type casting (warning)

This commit is contained in:
Karma Riuk 2025-02-03 14:05:16 +01:00
parent 4df7cbf01a
commit 805d9fa95c

View File

@ -56,7 +56,7 @@ std::vector<Move> pawn_moves(const Board& b, const Coords xy) {
ret.push_back(Move{
xy.to_index(),
new_xy.to_index(),
.promoting_to = my_colour | piece
.promoting_to = (int8_t) (my_colour | piece)
});
}