cpl/cplsetup.c, cleanup

This commit is contained in:
rlar 2016-06-16 20:07:20 +02:00
parent 7ea4e99842
commit 34f8841805
1 changed files with 6 additions and 6 deletions

View File

@ -565,18 +565,18 @@ new_memory(int dim, int deg, int deg_o)
****************************************************************/
static double
*vector(int nl, int nh)
static double *
vector(int nl, int nh)
{
double *v;
double *v = TMALLOC(double, nh - nl + 1);
v = TMALLOC(double, (unsigned) (nh - nl + 1));
if (!v) {
fprintf(stderr, "Memory Allocation Error by tmalloc in vector().\n");
fprintf(stderr, "...now exiting to system ...\n");
controlled_exit(EXIT_FAILURE);
}
return v-nl;
return v - nl;
}
static void
@ -584,7 +584,7 @@ free_vector(double *v, int nl, int nh)
{
NG_IGNORE(nh);
free((void*) (v +nl));
free(v + nl);
}
static void