Skip to content

Commit

Permalink
add include to search.cpp
Browse files Browse the repository at this point in the history
bench 1283457
  • Loading branch information
xu-shawn committed Oct 24, 2024
1 parent e5006fe commit 61fa42d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <utility>

#include "evaluate.h"
#include "history.h"
#include "misc.h"
#include "movegen.h"
#include "movepick.h"
Expand Down Expand Up @@ -540,7 +541,7 @@ Value Search::Worker::search(

// Dive into quiescence search when the depth reaches zero
if (depth <= 0)
return qsearch < PvNode ? PV : NonPV > (pos, ss, alpha, beta);
return qsearch<PvNode ? PV : NonPV>(pos, ss, alpha, beta);

// Limit the depth if extensions made it too large
depth = std::min(depth, MAX_PLY - 1);
Expand Down

0 comments on commit 61fa42d

Please sign in to comment.