Initialize bestSolution to all -1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user