aboutsummaryrefslogtreecommitdiff
path: root/nlsolve.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-11 17:13:40 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-11 17:13:40 +0100
commit121a0add4a95c52c41b03723fb321e2f84902276 (patch)
treefc16aba9905da7ae1311116b52d2338d32211fb8 /nlsolve.c
parent45ee13e5e3a14107cfa72928c7b93f37874a57df (diff)
{nl,ps}solve: eliminate const warnings
Diffstat (limited to 'nlsolve.c')
-rw-r--r--nlsolve.c4
1 files changed, 2 insertions, 2 deletions
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 */