mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Perft should return an int64_t not an int
Found by Louis Zulli with his super fast hardware: 65M nodes/sec at perft ! No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -364,12 +364,12 @@ void init_search() {
|
||||
/// perft() is our utility to verify move generation is bug free. All the legal
|
||||
/// moves up to given depth are generated and counted and the sum returned.
|
||||
|
||||
int perft(Position& pos, Depth depth)
|
||||
int64_t perft(Position& pos, Depth depth)
|
||||
{
|
||||
MoveStack mlist[MOVES_MAX];
|
||||
StateInfo st;
|
||||
Move m;
|
||||
int sum = 0;
|
||||
int64_t sum = 0;
|
||||
|
||||
// Generate all legal moves
|
||||
MoveStack* last = generate_moves(pos, mlist);
|
||||
|
||||
Reference in New Issue
Block a user