1b847b5abf50d2ab0701523b90a20306d0ee5528 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: #2269
}
static void check_int_array_size(int **a, int len, int *lenmax){
if (len >= *lenmax){
- *lenmax = len + MAX((int) 0.2*len, 10);
+ *lenmax = len + 10;
*a = REALLOC(*a, sizeof(int)*(*lenmax));
}