This commit is contained in:
Dennis Eichhorn 2023-08-28 22:06:37 +00:00
parent 40fc9b5bb5
commit c4db3681b4
2 changed files with 5 additions and 4 deletions

View File

@ -31,7 +31,7 @@ namespace Utils
void reverse_float(float *arr, int size)
{
for (int low = 0, high = size - 1; low < high; ++low, --high) {
float tmp = arr[low];
float tmp = arr[low];
arr[low] = arr[high];
arr[high] = tmp;
}
@ -41,9 +41,9 @@ namespace Utils
void reverse_double(double *arr, int size)
{
for (int low = 0, high = size - 1; low < high; ++low, --high) {
double tmp = arr[low];
arr[low] = arr[high];
arr[high] = tmp;
double tmp = arr[low];
arr[low] = arr[high];
arr[high] = tmp;
}
}

View File

@ -247,6 +247,7 @@ namespace Utils
free(dm);
// @todo: do we even need to realloc?
char **diffValuesT = (char **) realloc(diffValues, diffIndex * sizeof(char *));
if (!diffValuesT) {
free(diffValues);