From: Marco Costalba Date: Sat, 16 Oct 2010 11:19:44 +0000 (+0200) Subject: Fix a shadowed variable warning under icc X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d664773a8316f04ba6e59b7bfccd14c3dc2af5f1;ds=sidebyside Fix a shadowed variable warning under icc No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index b8c6c952..11ae249b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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(pos, ss, sp->alpha, sp->beta, sp->depth, sp->ply); + if (tsp->pvNode) + search(pos, ss, tsp->alpha, tsp->beta, tsp->depth, tsp->ply); else - search(pos, ss, sp->alpha, sp->beta, sp->depth, sp->ply); + search(pos, ss, tsp->alpha, tsp->beta, tsp->depth, tsp->ply); assert(threads[threadID].state == THREAD_SEARCHING);