Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 514899e

Browse files
committed
Fix C++ism in C file
1 parent 0c074fc commit 514899e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cntr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,12 +1890,13 @@ Cntr_get_cdata(Cntr *self)
18901890
npy_intp dims[2];
18911891
int i, j;
18921892
int ni, nj;
1893+
char *data;
18931894

18941895
dims[0] = ni = self->site->imax;
18951896
dims[1] = nj = self->site->jmax;
18961897

18971898
Cdata = (PyArrayObject *) PyArray_SimpleNew(2, dims, NPY_SHORT);
1898-
char* const data = PyArray_DATA(Cdata);
1899+
data = PyArray_DATA(Cdata);
18991900
for (j=0; j<nj; j++)
19001901
for (i=0; i<ni; i++)
19011902
data[j + i*nj] = self->site->data[i + j*ni];

0 commit comments

Comments
 (0)