Initialize bestSolution to all -1
This commit is contained in:
parent
051a727caf
commit
72da8e371b
@ -65,6 +65,10 @@ void initCircBuf()
|
||||
for (int i = 0; i < MAX_ITEMS; i++) {
|
||||
shared->data[i] = -1;
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAX_ITEMS; i++) {
|
||||
bestSolution[i] = -1;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user