From f4592ae8d00453dd8df774b5bf9fe889514dcb53 Mon Sep 17 00:00:00 2001 From: herbglitch Date: Wed, 28 Feb 2024 22:04:20 -0700 Subject: [PATCH] fixed queue I think --- src/std/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std/queue.c b/src/std/queue.c index 6e8c71b..b0842f7 100644 --- a/src/std/queue.c +++ b/src/std/queue.c @@ -50,7 +50,7 @@ void ARC_Queue_Push(ARC_Queue *queue, void *data){ } 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){ arc_errno = ARC_ERRNO_NULL; ARC_DEBUG_ERR("ARC_Queue_Push(queue), when getting end node encountered a NULL node");