Slightly change split() API

This function "returns" two values: bestValue and bestMove

Instead of returning one and passing as pointer the other
be consistent and pass as pointers both.

No functional change.
This commit is contained in:
Marco Costalba
2013-02-05 06:30:05 +01:00
parent 1a414cd9cb
commit bf706c4a4f
3 changed files with 14 additions and 16 deletions

View File

@@ -1030,8 +1030,8 @@ split_point_start: // At split points actual search starts from here
{
assert(bestValue < beta);
bestValue = thisThread->split<FakeSplit>(pos, ss, alpha, beta, bestValue, &bestMove,
depth, threatMove, moveCount, mp, NT);
thisThread->split<FakeSplit>(pos, ss, alpha, beta, &bestValue, &bestMove,
depth, threatMove, moveCount, &mp, NT);
if (bestValue >= beta)
break;
}