File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments