mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Fix a shadowed variable warning under icc
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
f092667460
commit
d664773a83
1 changed files with 7 additions and 7 deletions
|
@ -2268,15 +2268,15 @@ split_point_start: // At split points actual search starts from here
|
|||
threads[threadID].state = THREAD_SEARCHING;
|
||||
|
||||
// Here we call search() with SplitPoint template parameter set to true
|
||||
SplitPoint* sp = threads[threadID].splitPoint;
|
||||
Position pos(*sp->pos, threadID);
|
||||
SearchStack* ss = sp->sstack[threadID] + 1;
|
||||
ss->sp = sp;
|
||||
SplitPoint* tsp = threads[threadID].splitPoint;
|
||||
Position pos(*tsp->pos, threadID);
|
||||
SearchStack* ss = tsp->sstack[threadID] + 1;
|
||||
ss->sp = tsp;
|
||||
|
||||
if (sp->pvNode)
|
||||
search<PV, true>(pos, ss, sp->alpha, sp->beta, sp->depth, sp->ply);
|
||||
if (tsp->pvNode)
|
||||
search<PV, true>(pos, ss, tsp->alpha, tsp->beta, tsp->depth, tsp->ply);
|
||||
else
|
||||
search<NonPV, true>(pos, ss, sp->alpha, sp->beta, sp->depth, sp->ply);
|
||||
search<NonPV, true>(pos, ss, tsp->alpha, tsp->beta, tsp->depth, tsp->ply);
|
||||
|
||||
assert(threads[threadID].state == THREAD_SEARCHING);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue