This was a typo in
0e53497fae6e05a59c31b7f124ddd1166901759f. It seemingly went
unnoticed amid the torrent of warnings the Autotools build emits. I only picked
this up when enabling this code in the CMake build system that compiles with
-Werror in CI.
int old_nmax = *nmax;
*nmax = MAX((int) 0.2*(*n), 20) + *n;
*x = gv_recalloc(*x, 2 * old_nmax, 2 * *nmax, sizeof(double));
- *groups = gv_recalloc(*groups, old_nmax, nmax, sizeof(int));
+ *groups = gv_recalloc(*groups, old_nmax, *nmax, sizeof(int));
}
(*x)[(*n)*2] = point[0];