fixed queue I think
This commit is contained in:
parent
d42f0f679e
commit
f4592ae8d0
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ void ARC_Queue_Push(ARC_Queue *queue, void *data){
|
||||||
}
|
}
|
||||||
|
|
||||||
ARC_QueueNode *end = queue->node;
|
ARC_QueueNode *end = queue->node;
|
||||||
for(uint32_t i = 0; i < queue->currentSize; i++){
|
for(uint32_t i = 1; i < queue->currentSize; i++){
|
||||||
if(end->next == NULL){
|
if(end->next == NULL){
|
||||||
arc_errno = ARC_ERRNO_NULL;
|
arc_errno = ARC_ERRNO_NULL;
|
||||||
ARC_DEBUG_ERR("ARC_Queue_Push(queue), when getting end node encountered a NULL node");
|
ARC_DEBUG_ERR("ARC_Queue_Push(queue), when getting end node encountered a NULL node");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue