]> git.sesse.net Git - stockfish/commitdiff
Code style triviality in split()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 21 Feb 2010 13:05:38 +0000 (14:05 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 21 Feb 2010 13:05:38 +0000 (14:05 +0100)
No functional change

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index ecc53580716e26ee1b3134baac8dd4e4b6f38ea3..197928fa941e67085278a6256a977586cc0d9a5e 100644 (file)
@@ -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);