diff --git a/firedrake/cython/dmcommon.pyx b/firedrake/cython/dmcommon.pyx index eda8470d4e..8b8e1da170 100644 --- a/firedrake/cython/dmcommon.pyx +++ b/firedrake/cython/dmcommon.pyx @@ -3358,7 +3358,7 @@ def make_global_numbering(PETSc.Section lsec, PETSc.Section gsec): cdef: PetscInt c, cc, p, pStart, pEnd, dof, cdof, loff, goff np.ndarray val - PetscInt *dof_array = NULL + const PetscInt *dof_array = NULL val = np.empty(lsec.getStorageSize(), dtype=IntType) pStart, pEnd = lsec.getChart()