--- a/src/linked_list.c Thu Oct 31 14:39:05 2024 +0100 +++ b/src/linked_list.c Thu Oct 31 14:54:44 2024 +0100 @@ -27,7 +27,6 @@ */ #include "cx/linked_list.h" -#include "cx/utils.h" #include "cx/compare.h" #include <string.h> #include <assert.h> @@ -447,7 +446,7 @@ // Update pointer if (loc_prev >= 0) ll_prev(sorted[0]) = NULL; - cx_for_n (i, length - 1) { + for (size_t i = 0 ; i < length - 1; i++) { cx_linked_list_link(sorted[i], sorted[i + 1], loc_prev, loc_next); } ll_next(sorted[length - 1]) = NULL; @@ -772,7 +771,7 @@ // copy or destroy the removed chain if (targetbuf == NULL) { cx_linked_list_node *n = node; - cx_for_n(i, removed) { + for (size_t i = 0; i < removed; i++) { // element destruction cx_invoke_destructor(list, n->payload); @@ -784,7 +783,7 @@ } else { char *dest = targetbuf; cx_linked_list_node *n = node; - cx_for_n(i, removed) { + for (size_t i = 0; i < removed; i++) { // copy payload memcpy(dest, n->payload, list->collection.elem_size);