diff -r 1562bdf948da -r 1b4fa55f7caa src/cx/kv_list.h --- a/src/cx/kv_list.h Wed Sep 17 22:45:00 2025 +0200 +++ b/src/cx/kv_list.h Thu Sep 18 00:36:42 2025 +0200 @@ -329,9 +329,9 @@ * @param key (@c CxHashKey, @c char*, @c cxstring, or @c cxmutstr) the key * @param value (@c void*) the value * @retval zero success - * @retval non-zero memory allocation failure or the index is out of bounds + * @retval non-zero memory allocation failure */ -#define cxKvListAdd(list, index, key, value) cxKvListInsert(list, list->collection.size, key, value) +#define cxKvListAdd(list, key, value) cxKvListInsert(list, (list)->collection.size, key, value) #ifdef __cplusplus } // extern "C"