From 2f2e8a68d831aa70c0873309c990a378b68f1f57 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 21 Feb 2010 14:05:38 +0100 Subject: [PATCH] Code style triviality in split() No functional change Signed-off-by: Marco Costalba --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index ecc53580..197928fa 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2842,8 +2842,7 @@ namespace { } // Pick the next available split point object from the split point stack - splitPoint = SplitPointStack[master] + threads[master].activeSplitPoints; - threads[master].activeSplitPoints++; + splitPoint = &SplitPointStack[master][threads[master].activeSplitPoints]; // Initialize the split point object splitPoint->parent = threads[master].splitPoint; @@ -2865,6 +2864,7 @@ namespace { splitPoint->slaves[i] = 0; threads[master].splitPoint = splitPoint; + threads[master].activeSplitPoints++; // If we are here it means we are not available assert(threads[master].state != THREAD_AVAILABLE); -- 2.39.2