src/array_list.c

changeset 678
78f943d76f50
parent 677
b09aae58bba4
child 699
35b2b99ee523
     1.1 --- a/src/array_list.c	Sun Apr 09 19:03:58 2023 +0200
     1.2 +++ b/src/array_list.c	Sun Apr 09 19:06:16 2023 +0200
     1.3 @@ -272,7 +272,7 @@
     1.4      }
     1.5  
     1.6      // content destruction
     1.7 -    cx_invoke_destructor(list, ((char*)arl->data) + index * list->item_size);
     1.8 +    cx_invoke_destructor(list, ((char *) arl->data) + index * list->item_size);
     1.9  
    1.10      // short-circuit removal of last element
    1.11      if (index == list->size - 1) {
    1.12 @@ -510,7 +510,7 @@
    1.13      if (item_size > 0) {
    1.14          list->base.item_size = item_size;
    1.15      } else {
    1.16 -        item_size = sizeof(void*);
    1.17 +        item_size = sizeof(void *);
    1.18          cxListStorePointers((CxList *) list);
    1.19      }
    1.20  

mercurial