SAGA2: Change code for readability

This commit is contained in:
a/ 2021-06-23 23:01:10 +09:00 committed by Eugene Sandulenko
parent 9a39a34a5d
commit d038657294
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -1321,12 +1321,13 @@ Thread *ThreadList::next(Thread *thread) {
if (_list[i] == thread)
break;
if (i == kNumThreads)
i++;
if (i >= kNumThreads)
return nullptr;
for (int j = i + 1; j < kNumThreads; j++)
if (_list[j])
return _list[j];
for (; i < kNumThreads; i++)
if (_list[i])
return _list[i];
return nullptr;
}