fixed wrong size of memory allocation

This commit is contained in:
Sarod Yatawatta 2018-02-28 10:02:27 +01:00
parent 068cf2322c
commit 578470f07d
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ mult_hessian(int m, double *pk, double *gk, double *s, double *y, double *rho, i
fprintf(stderr,"%s: %d: no free memory\n",__FILE__,__LINE__);
exit(1);
}
if ((idx=(int*)calloc((size_t)M,sizeof(double)))==0) {
if ((idx=(int*)calloc((size_t)M,sizeof(int)))==0) {
fprintf(stderr,"%s: %d: no free memory\n",__FILE__,__LINE__);
exit(1);
}