Skip to content

Commit 7ee2318

Browse files
committed
Fix crash
1 parent 953541f commit 7ee2318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/slick_queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class SlickQueue {
181181
data_ = new ((uint8_t*)lpvMem + 64 + sizeof(slot) * (SIZE + 1024)) T[SIZE + 1024];
182182
}
183183
else {
184-
reserved_ = reinterpret_cast<std::atomic_uint_fast64_t*>(lpvMem_);
184+
reserved_ = reinterpret_cast<std::atomic_uint_fast64_t*>(lpvMem);
185185
control_ = reinterpret_cast<slot*>((uint8_t*)lpvMem + 64);
186186
data_ = reinterpret_cast<T*>((uint8_t*)lpvMem + 64 + sizeof(slot) * (SIZE + 1024));
187187
}

0 commit comments

Comments
 (0)