1.1 --- a/src/array.c Thu Jul 11 10:11:43 2019 +0200 1.2 +++ b/src/array.c Tue Aug 06 16:26:46 2019 +0200 1.3 @@ -223,7 +223,7 @@ 1.4 return; 1.5 } 1.6 1.7 - // we need memory for one element 1.8 + /* we need memory for one element */ 1.9 void *value = malloc(array->elemsize); 1.10 1.11 while (start <= mid && rightstart <= end) { 1.12 @@ -231,16 +231,16 @@ 1.13 ucx_array_at(*array, rightstart), data) <= 0) { 1.14 start++; 1.15 } else { 1.16 - // save the value from the right 1.17 + /* save the value from the right */ 1.18 memcpy(value, ucx_array_at(*array, rightstart), array->elemsize); 1.19 1.20 - // shift all left elements one element to the right 1.21 + /* shift all left elements one element to the right */ 1.22 size_t shiftcount = rightstart-start; 1.23 void *startptr = ucx_array_at(*array, start); 1.24 void *dest = ucx_array_at(*array, start+1); 1.25 memmove(dest, startptr, shiftcount*array->elemsize); 1.26 1.27 - // bring the first value from the right to the left 1.28 + /* bring the first value from the right to the left */ 1.29 memcpy(startptr, value, array->elemsize); 1.30 1.31 start++; 1.32 @@ -249,7 +249,7 @@ 1.33 } 1.34 } 1.35 1.36 - // free the temporary memory 1.37 + /* free the temporary memory */ 1.38 free(value); 1.39 } 1.40