wangzhengquan
2020-08-06 ff4991e1f942a3f1281330e21bf437b4b8558094
src/queue/include/array_lock_free_queue.h
@@ -311,7 +311,7 @@
{
    int currentCount = m_count;
    uint32_t currentReadIndex = m_readIndex;
    if (i < 0 || i >= currentCount)
    if (i >= currentCount)
    {
        std::cerr << "ArrayLockFreeQueue<ELEM_T, Allocator>::operator[] , Error in array limits: " << i << " is out of range\n";
        std::exit(EXIT_FAILURE);