X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmove.h;h=9df3277db775919672a88923e991ee82ffbf707c;hp=0eb7b18b4cc97d8653bba9517d2db40dd7727d5d;hb=1ee1d852fe5f82b73a9799db7cdd8468c0fa5faa;hpb=9fc602bae74b8e09bd45ace3b42a8ce84d56b23c diff --git a/src/move.h b/src/move.h index 0eb7b18b..9df3277d 100644 --- a/src/move.h +++ b/src/move.h @@ -101,11 +101,11 @@ inline void sort_moves(T* firstMove, T* lastMove, T** lastPositive) // Split positives vs non-positives do { - while ((++p)->score > 0); + while ((++p)->score > 0) {} if (p != d) { - while (--d != p && d->score <= 0); + while (--d != p && d->score <= 0) {} tmp = *p; *p = *d; @@ -201,9 +201,9 @@ inline Move make_ep_move(Square from, Square to) { //// Prototypes //// -extern std::ostream& operator<<(std::ostream &os, Move m); -extern Move move_from_string(const Position &pos, const std::string &str); -extern const std::string move_to_string(Move m); +extern std::ostream& operator<<(std::ostream& os, Move m); +extern Move move_from_string(const Position& pos, const std::string &str); +extern const std::string move_to_string(Move m, bool chess960); extern bool move_is_ok(Move m);