changeset 26897:ba0c9e84f6a8

allow building with sundials library that uses 32-bit sunindextype (bug #52475) * __ode15__.cc (IDA::jacsparse_impl): Use pointer to sunindextype instead of octave_idx_type so that pointer types match.
author John W. Eaton <jwe@octave.org>
date Wed, 13 Mar 2019 05:54:28 +0000
parents 9fa577cf9f4e
children d94876e7a0aa
files libinterp/dldfcn/__ode15__.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__ode15__.cc	Wed Mar 13 06:24:13 2019 +0100
+++ b/libinterp/dldfcn/__ode15__.cc	Wed Mar 13 05:54:28 2019 +0000
@@ -455,8 +455,8 @@
       jac = (*jacspcell) (spdfdy, spdfdyp, cj);
 
     SUNMatZero_Sparse (Jac);
-    octave_idx_type *colptrs = SUNSparseMatrix_IndexPointers (Jac);
-    octave_idx_type *rowvals = SUNSparseMatrix_IndexValues (Jac);
+    sunindextype *colptrs = SUNSparseMatrix_IndexPointers (Jac);
+    sunindextype *rowvals = SUNSparseMatrix_IndexValues (Jac);
 
     for (int i = 0; i < num + 1; i++)
       colptrs[i] = jac.cidx(i);