fixed queue I think

This commit is contained in:
herbglitch 2024-02-28 22:04:20 -07:00
parent d42f0f679e
commit f4592ae8d0

View file

@ -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");