Commit 41b9650b authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix implicit conversions in Gauss grid size computations.

parent 81b295f1
......@@ -123,8 +123,8 @@ void gauaw(int kn, double *restrict pl, double *restrict pw)
int ik, ins2, isym, jgl, jglm1, jn, iodd;
zfn = (double *) malloc((kn+1)*(kn+1)*sizeof(double));
zfnlat = (double *) malloc((kn/2+1+1)*sizeof(double));
zfn = (double *) malloc(((size_t)kn+1) * ((size_t)kn+1) * sizeof(double));
zfnlat = (double *) malloc(((size_t)kn/2+1+1)*sizeof(double));
zfn[0] = M_SQRT2;
for (jn = 1; jn <= kn; jn++)
......
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