d1d1ae30865c14bb7e6a75f8772543c10419e48b seems to have incorrectly assumed
multiplication has a higher precedence than casts. In reality, it is the
opposite, meaning the first parameter to this `MAX` call was always 0. So the
entire expression would evaluate to 10. Empirically this seems to have been fine
since this code has been in use for over a decade with no specific problems
blamed on this area. So lets just abbreviate it into what it evaluates to.
Gitlab: fixes #2269
if (nz + nentries >= A->nzmax){
nzmax = nz + nentries;
- nzmax = MAX(10, (int) 0.2*nzmax) + nzmax;
+ nzmax += 10;
A = SparseMatrix_realloc(A, nzmax);
}
A->ia[nz] = irn;