From da6889fcec7cc0772f351752f37eb42380da6630 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 11 Jan 2023 16:36:29 +0100 Subject: {ps,nl}solve: constify exported colloc grid Reduces compiler warnings. --- nlsolve.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nlsolve.h') diff --git a/nlsolve.h b/nlsolve.h index d0e3c38..3f3987c 100644 --- a/nlsolve.h +++ b/nlsolve.h @@ -82,7 +82,7 @@ typedef struct NLSolveContext { * * Set by the solver after tdi_nlsolve_context_init(). */ - double *(*colloc_grid)[2]; + const double * const (*colloc_grid)[2]; // solver parameters unsigned int maxiter; -- cgit v1.2.3