Commit 9a1816ec authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Fixing clang build issue.

Change-Id: I6927c438e07a4718902e2ac97f17cd687a3f9124
parent f349e5fd
......@@ -22,6 +22,7 @@
#include <algorithm>
#include <assert.h>
#include <queue>
#include <vector>
//*****************************************************************************
namespace
......@@ -199,7 +200,8 @@ unsigned int vtkAMRStreamingPriorityQueue::Pop()
int myid = this->Controller? this->Controller->GetLocalProcessId() : 0;
assert(myid < num_procs);
vtkInternals::vtkPriorityQueueItem items[num_procs];
std::vector<vtkInternals::vtkPriorityQueueItem> items;
items.resize(num_procs);
for (int cc=0; cc < num_procs && !this->Internals->PriorityQueue.empty(); cc++)
{
items[cc] = this->Internals->PriorityQueue.top();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment