Skip to content

Commit 6f48367

Browse files
scchessmcostalba
authored andcommitted
Add some const qualifier
No functional change.
1 parent 83a574f commit 6f48367

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ void Thread::idle_loop() {
15521552
if (Threads.size() > 2)
15531553
for (size_t i = 0; i < Threads.size(); ++i)
15541554
{
1555-
int size = Threads[i]->splitPointsSize; // Local copy
1555+
const int size = Threads[i]->splitPointsSize; // Local copy
15561556
sp = size ? &Threads[i]->splitPoints[size - 1] : NULL;
15571557

15581558
if ( sp

src/thread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ bool Thread::available_to(const Thread* master) const {
119119

120120
// Make a local copy to be sure it doesn't become zero under our feet while
121121
// testing next condition and so leading to an out of bounds access.
122-
int size = splitPointsSize;
122+
const int size = splitPointsSize;
123123

124124
// No split points means that the thread is available as a slave for any
125125
// other thread otherwise apply the "helpful master" concept if possible.

0 commit comments

Comments
 (0)