Skip to content

Commit 1b57ce8

Browse files
authored
Update BestFirst.cpp
1 parent 355d4bf commit 1b57ce8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BestFirst.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ BestFirst<T>::BestFirst(const Matrix &f, const Matrix &l,
7070

7171
// Step 6
7272
int childNum = eList.size();
73-
double resultList[childNum] { 0.0 };
73+
std::vector<double> resultList(childNum, 0.0);
7474
#pragma omp parallel for schedule(static) num_threads(threadNum)
7575
for (int i = 0; i < childNum; i++) {
7676
Node child = eList[i];

0 commit comments

Comments
 (0)