Commit ff5789ed authored by Laurent Defert's avatar Laurent Defert

Fix naming amibiguity

parent d099dacd
Pipeline #4 failed with stages
......@@ -203,17 +203,17 @@ void refresh_screen()
refresh();
}
double* insert_value(double *values, double value)
double* insert_value(double *_values, double value)
{
if(values_count % VALUES_PREALLOC == 0)
{
values = (double*)realloc(values, (unsigned int)(values_count + VALUES_PREALLOC) * sizeof(double));
memset(values + values_count, 0, VALUES_PREALLOC * sizeof(double));
_values = (double*)realloc(_values, (unsigned int)(values_count + VALUES_PREALLOC) * sizeof(double));
memset(_values + values_count, 0, VALUES_PREALLOC * sizeof(double));
}
values[values_count] = value;
_values[values_count] = value;
return values;
return _values;
}
int read_input()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment