# HG changeset patch # User Mike Becker # Date 1706293066 -3600 # Node ID 8b86ee2e09bbf23728e8ceea54cea4e581db1c95 # Parent 5da2ead43077e9daf9ace43a3bb82871f91159b1 remove check that is always true in cx_arl_remove() diff -r 5da2ead43077 -r 8b86ee2e09bb src/array_list.c --- a/src/array_list.c Thu Jan 25 22:05:48 2024 +0100 +++ b/src/array_list.c Fri Jan 26 19:17:46 2024 +0100 @@ -327,11 +327,14 @@ list->size - index - 1, &arl->reallocator ); - if (result == 0) { - // decrease the size - list->size--; - } - return result; + + // cx_array_copy cannot fail, array cannot grow + assert(result == 0); + + // decrease the size + list->size--; + + return 0; } static void cx_arl_clear(struct cx_list_s *list) {