From: Marco Costalba Date: Sat, 29 May 2010 07:11:36 +0000 (+0100) Subject: Use Key type instead of Bitboard X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=8c328787016f67e7308c709a9a69455f47a8f77c Use Key type instead of Bitboard They are both 64 bits unsigned integer, but it is correct to use the proper type. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/position.cpp b/src/position.cpp index ade1c5d2..abfbc999 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -697,7 +697,7 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI assert(is_ok()); assert(move_is_ok(m)); - Bitboard key = st->key; + Key key = st->key; // Copy some fields of old state to our new StateInfo object except the // ones which are recalculated from scratch anyway, then switch our state @@ -896,7 +896,7 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI /// Position::do_capture_move() is a private method used to update captured /// piece info. It is called from the main Position::do_move function. -void Position::do_capture_move(Bitboard& key, PieceType capture, Color them, Square to, bool ep) { +void Position::do_capture_move(Key& key, PieceType capture, Color them, Square to, bool ep) { assert(capture != KING); diff --git a/src/position.h b/src/position.h index 234da26d..67cca4bb 100644 --- a/src/position.h +++ b/src/position.h @@ -290,7 +290,7 @@ private: void allow_ooo(Color c); // Helper functions for doing and undoing moves - void do_capture_move(Bitboard& key, PieceType capture, Color them, Square to, bool ep); + void do_capture_move(Key& key, PieceType capture, Color them, Square to, bool ep); void do_castle_move(Move m); void undo_castle_move(Move m); void find_checkers();