From 121a0add4a95c52c41b03723fb321e2f84902276 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 11 Jan 2023 17:13:40 +0100 Subject: {nl,ps}solve: eliminate const warnings --- nlsolve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nlsolve.c') diff --git a/nlsolve.c b/nlsolve.c index ee08ec7..84c6b8a 100644 --- a/nlsolve.c +++ b/nlsolve.c @@ -79,7 +79,7 @@ struct NLSolvePriv { NLEquationContext *eqs; NLVarContext *vars; - const double *(**eq_coeffs)[PSSOLVE_DIFF_ORDER_NB]; + PSEqCoeffs *eq_coeffs; double *delta; double *rhs; @@ -498,7 +498,7 @@ int tdi_nlsolve_context_init(NLSolveContext *ctx) if (ret < 0) return ret; - s->eq_coeffs[i] = s->eqs[i].eq_coeffs; + s->eq_coeffs[i].func_coeffs = (const double * const (*)[PSSOLVE_DIFF_ORDER_NB])s->eqs[i].eq_coeffs; } /* init the per-variable state */ -- cgit v1.2.3