wangzhengquan
2020-07-29 e68463e61597798594611b2bfb2925da00e8d4fb
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);