X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpiece.h;fp=src%2Fpiece.h;h=64c94082af826f5ae030fbec0da45f15f4a0d830;hp=be77079a413876fdc0ad08c4856a1a38e1ae66c0;hb=deb212cb052b50caa68542cde8e14ef6c6a0a01c;hpb=aa40d0a917285172e9334156fef5236b0c0e004f diff --git a/src/piece.h b/src/piece.h index be77079a..64c94082 100644 --- a/src/piece.h +++ b/src/piece.h @@ -88,7 +88,7 @@ inline Piece piece_of_color_and_type(Color c, PieceType pt) { return Piece((int(c) << 3) | int(pt)); } -inline SquareDelta pawn_push(Color c) { +inline Square pawn_push(Color c) { return (c == WHITE ? DELTA_N : DELTA_S); }