Fix bug in QueuePop()

This commit is contained in:
Jordan Bancino 2022-09-17 15:59:47 -04:00
parent 6782d01a89
commit 8bd7e27de1

View file

@ -148,8 +148,8 @@ QueuePop(Queue * q)
if (q->front == q->rear)
{
q->front = -1;
q->rear = -1;
q->front = q->size + 1;
q->rear = q->size + 1;
}
else
{