diff --git a/src/movegen.h b/src/movegen.h index 9f45e250..0c2a8b25 100644 --- a/src/movegen.h +++ b/src/movegen.h @@ -47,7 +47,7 @@ struct MoveList { Move move() const { return cur->move; } size_t size() const { return last - mlist; } bool contains(Move m) const { - for (const MoveStack* it(mlist) ; it != last; ++it) if (it->move == m) return true; + for (const MoveStack* it(mlist); it != last; ++it) if (it->move == m) return true; return false; } diff --git a/src/types.h b/src/types.h index 99567bd7..506e1b0f 100644 --- a/src/types.h +++ b/src/types.h @@ -475,7 +475,7 @@ inline Move make_move(Square from, Square to) { template inline Move make(Square from, Square to, PieceType pt = KNIGHT) { - return Move(to | (from << 6) | T | ((pt - KNIGHT) << 12)) ; + return Move(to | (from << 6) | T | ((pt - KNIGHT) << 12)); } inline bool is_ok(Move m) {