Skip to content

Commit 2400643

Browse files
committed
Fix off by one.
1 parent fd0580b commit 2400643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/selfplay/loop.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ void RescoreLoop::RunLoop() {
367367
if (threads > 1) {
368368
std::vector<std::thread> threads_;
369369
int offset = 0;
370-
while (threads_.size() <= threads) {
370+
while (threads_.size() < threads) {
371371
int offset_val = offset;
372372
offset++;
373373
threads_.emplace_back([this, offset_val, files, &tablebase, threads]() {

0 commit comments

Comments
 (0)