wangzhengquan
2020-07-30 614cfd0c968d7b156932d85a5b375ace272a6775
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);