From d664773a8316f04ba6e59b7bfccd14c3dc2af5f1 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 16 Oct 2010 13:19:44 +0200 Subject: [PATCH] Fix a shadowed variable warning under icc No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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); -- 2.39.2