mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-29 10:58:40 +00:00
update
This commit is contained in:
parent
40fc9b5bb5
commit
c4db3681b4
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user