projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
16d6faf
)
Fix a possible out of range access in previous patch
author
Marco Costalba
<mcostalba@gmail.com>
Wed, 12 May 2010 11:30:00 +0000 (12:30 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Wed, 12 May 2010 11:30:00 +0000 (12:30 +0100)
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
4a2acb6
..
ed15902
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-2409,7
+2409,7
@@
namespace {
// If this thread is the master of a split point and all slaves have
// finished their work at this split point, return from the idle loop.
int i = 0;
- for ( ; sp && !sp->slaves[i] && i < ActiveThreads; i++) {}
+ for ( ; sp && i < ActiveThreads && !sp->slaves[i]; i++) {}
if (i == ActiveThreads)
{