app: in polynomial_odd_roots(), fix derivative array size

This commit is contained in:
Ell 2020-02-07 00:54:57 +02:00
parent f9f4538358
commit db678ad212
1 changed files with 1 additions and 1 deletions

View File

@ -895,7 +895,7 @@ polynomial_odd_roots (const gdouble *poly,
/* general case */
default:
{
gdouble deriv[degree - 1];
gdouble deriv[degree];
gdouble deriv_roots[degree - 1];
gint n_deriv_roots;
gdouble a;