Skip to content

Commit

Permalink
Fix C++ism in C file
Browse files Browse the repository at this point in the history
  • Loading branch information
jkseppan committed Sep 21, 2014
1 parent 0c074fc commit 514899e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cntr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1890,12 +1890,13 @@ Cntr_get_cdata(Cntr *self)
npy_intp dims[2];
int i, j;
int ni, nj;
char *data;

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

Cdata = (PyArrayObject *) PyArray_SimpleNew(2, dims, NPY_SHORT);
char* const data = PyArray_DATA(Cdata);
data = PyArray_DATA(Cdata);
for (j=0; j<nj; j++)
for (i=0; i<ni; i++)
data[j + i*nj] = self->site->data[i + j*ni];
Expand Down

0 comments on commit 514899e

Please sign in to comment.