diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-01-11 17:13:40 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-01-11 17:13:40 +0100 |
commit | 121a0add4a95c52c41b03723fb321e2f84902276 (patch) | |
tree | fc16aba9905da7ae1311116b52d2338d32211fb8 /nlsolve.c | |
parent | 45ee13e5e3a14107cfa72928c7b93f37874a57df (diff) |
{nl,ps}solve: eliminate const warnings
Diffstat (limited to 'nlsolve.c')
-rw-r--r-- | nlsolve.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |