mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Add some const qualifier
No functional change.
This commit is contained in:
parent
83a574ff27
commit
6f48367094
2 changed files with 2 additions and 2 deletions
|
@ -1552,7 +1552,7 @@ void Thread::idle_loop() {
|
|||
if (Threads.size() > 2)
|
||||
for (size_t i = 0; i < Threads.size(); ++i)
|
||||
{
|
||||
int size = Threads[i]->splitPointsSize; // Local copy
|
||||
const int size = Threads[i]->splitPointsSize; // Local copy
|
||||
sp = size ? &Threads[i]->splitPoints[size - 1] : NULL;
|
||||
|
||||
if ( sp
|
||||
|
|
|
@ -119,7 +119,7 @@ bool Thread::available_to(const Thread* master) const {
|
|||
|
||||
// Make a local copy to be sure it doesn't become zero under our feet while
|
||||
// testing next condition and so leading to an out of bounds access.
|
||||
int size = splitPointsSize;
|
||||
const int size = splitPointsSize;
|
||||
|
||||
// No split points means that the thread is available as a slave for any
|
||||
// other thread otherwise apply the "helpful master" concept if possible.
|
||||
|
|
Loading…
Add table
Reference in a new issue