Rename promotion_piece_type() to promotion_type()

Shorter and equally clear to understand.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-02-26 18:31:02 +01:00
parent 96eefc4af6
commit 5bb766e826
4 changed files with 8 additions and 8 deletions

View File

@@ -452,7 +452,7 @@ inline int is_castle(Move m) {
return (m & (3 << 14)) == (3 << 14);
}
inline PieceType promotion_piece_type(Move m) {
inline PieceType promotion_type(Move m) {
return PieceType(((m >> 12) & 3) + 2);
}