Commit 7f940a0a authored by solomon's avatar solomon
Browse files

length array was not allocated to be big enough in calc_idx, only showed up...

length array was not allocated to be big enough in calc_idx, only showed up with icc, sad that gcc allowed that through.
......@@ -368,8 +368,8 @@ void calc_idx_arr(int ndim,
idx_arr[dim] = idx_rem/lda;
idx_rem -= idx_arr[dim]*lda;
} else {
int plen[dim];
memcpy(plen, lens, dim*sizeof(int));
int plen[dim+1];
memcpy(plen, lens, (dim+1)*sizeof(int));
int sg = 2;
int fsg = 2;
while (dim >= sg && sym[dim-sg] != NS) { sg++; fsg*=sg; }
......
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