From 805d9fa95c3abe01cb4354a7a5634b619133c8c0 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 3 Feb 2025 14:05:16 +0100 Subject: [PATCH] fixed implicit type casting (warning) --- cpp/src/pieces/pawn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/pieces/pawn.cpp b/cpp/src/pieces/pawn.cpp index f90aaff..ce31718 100644 --- a/cpp/src/pieces/pawn.cpp +++ b/cpp/src/pieces/pawn.cpp @@ -56,7 +56,7 @@ std::vector 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) }); }