We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c074fc commit 514899eCopy full SHA for 514899e
src/cntr.c
@@ -1890,12 +1890,13 @@ Cntr_get_cdata(Cntr *self)
1890
npy_intp dims[2];
1891
int i, j;
1892
int ni, nj;
1893
+ char *data;
1894
1895
dims[0] = ni = self->site->imax;
1896
dims[1] = nj = self->site->jmax;
1897
1898
Cdata = (PyArrayObject *) PyArray_SimpleNew(2, dims, NPY_SHORT);
- char* const data = PyArray_DATA(Cdata);
1899
+ data = PyArray_DATA(Cdata);
1900
for (j=0; j<nj; j++)
1901
for (i=0; i<ni; i++)
1902
data[j + i*nj] = self->site->data[i + j*ni];
0 commit comments