diff --git a/flow/Deque.h b/flow/Deque.h index c5c05fb895..030000fe91 100644 --- a/flow/Deque.h +++ b/flow/Deque.h @@ -41,21 +41,25 @@ public: Deque() : arr(0), begin(0), end(0), mask(-1) {} // TODO: iterator construction, other constructors - Deque(Deque const& r) : arr(0), begin(0), end(r.size()), mask(r.mask) { + Deque(Deque const& r) : arr(nullptr), begin(0), end(r.size()), mask(r.mask) { if (r.capacity() > 0) { arr = (T*)aligned_alloc(std::max(__alignof(T), sizeof(void*)), capacity() * sizeof(T)); ASSERT(arr != nullptr); } ASSERT(capacity() >= end || end == 0); - for (uint32_t i=0; i= end || end == 0); - for (uint32_t i=0; i