fixed implicit type casting (warning)
This commit is contained in:
parent
4df7cbf01a
commit
805d9fa95c
@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user