diff -r b9715d7317c1 -r 8f0a3c00d1d2 src/array.c --- a/src/array.c Thu Jul 11 10:11:43 2019 +0200 +++ b/src/array.c Tue Aug 06 16:26:46 2019 +0200 @@ -223,7 +223,7 @@ return; } - // we need memory for one element + /* we need memory for one element */ void *value = malloc(array->elemsize); while (start <= mid && rightstart <= end) { @@ -231,16 +231,16 @@ ucx_array_at(*array, rightstart), data) <= 0) { start++; } else { - // save the value from the right + /* save the value from the right */ memcpy(value, ucx_array_at(*array, rightstart), array->elemsize); - // shift all left elements one element to the right + /* shift all left elements one element to the right */ size_t shiftcount = rightstart-start; void *startptr = ucx_array_at(*array, start); void *dest = ucx_array_at(*array, start+1); memmove(dest, startptr, shiftcount*array->elemsize); - // bring the first value from the right to the left + /* bring the first value from the right to the left */ memcpy(startptr, value, array->elemsize); start++; @@ -249,7 +249,7 @@ } } - // free the temporary memory + /* free the temporary memory */ free(value); }