forked from lda/telodendria
Fix bug in QueuePop()
This commit is contained in:
parent
6782d01a89
commit
8bd7e27de1
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ QueuePop(Queue * q)
|
||||||
|
|
||||||
if (q->front == q->rear)
|
if (q->front == q->rear)
|
||||||
{
|
{
|
||||||
q->front = -1;
|
q->front = q->size + 1;
|
||||||
q->rear = -1;
|
q->rear = q->size + 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue