diff options
Diffstat (limited to 'src/bitboard.c')
| -rw-r--r-- | src/bitboard.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bitboard.c b/src/bitboard.c index afc7867..4746020 100644 --- a/src/bitboard.c +++ b/src/bitboard.c @@ -20,26 +20,26 @@ position_t position_starting() { 71776119061217280ULL, }, .castling = - (1 << WHITE_SHORT_CASTLE) | - (1 << WHITE_LONG_CASTLE) | - (1 << BLACK_SHORT_CASTLE) | - (1 << BLACK_LONG_CASTLE), + ((bitboard_t)1 << WHITE_SHORT_CASTLE) | + ((bitboard_t)1 << WHITE_LONG_CASTLE) | + ((bitboard_t)1 << BLACK_SHORT_CASTLE) | + ((bitboard_t)1 << BLACK_LONG_CASTLE), .turn = WHITE_TURN, - .passantable_column = 0, + .passantable_file = 0, }; } void assert_valid_position(position_t position) { assert(position.castling <= ( - (1 << WHITE_SHORT_CASTLE) | - (1 << WHITE_LONG_CASTLE) | - (1 << BLACK_SHORT_CASTLE) | - (1 << BLACK_LONG_CASTLE) + ((bitboard_t)1 << WHITE_SHORT_CASTLE) | + ((bitboard_t)1 << WHITE_LONG_CASTLE) | + ((bitboard_t)1 << BLACK_SHORT_CASTLE) | + ((bitboard_t)1 << BLACK_LONG_CASTLE) ) ); assert(position.turn == WHITE_TURN || position.turn == BLACK_TURN); - assert(position.passantable_column <= 8); + assert(position.passantable_file <= 8); assert(position.bitboards[WHITE_KING] != 0); assert(position.bitboards[BLACK_KING] != 0); } |
