Permalink
Browse files

Fix pointer reference bug.

  • Loading branch information...
1 parent 8b3bebe commit 16e7f9cf73a16da13c490e8dcd8cf3f0c0643df8 chris.burns committed Aug 8, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/bspline_ext.c
View
@@ -32,7 +32,7 @@ static PyObject *BSpline_Invband(PyObject *self, PyObject *args)
data = (double *)PyArray_DATA(invband);
free(dims_invband);
- invband_compute(data, L_data, (int)dims_L[0], (int)dims_L[1]);
+ invband_compute(&data, L_data, (int)dims_L[0], (int)dims_L[1]);
exit:
@@ -49,7 +49,7 @@ static PyObject *BSpline_Gram(PyObject *self, PyObject *args)
int dl;
int dr;
double *knots;
- double **data;
+ double *data;
npy_intp *nknots;
npy_intp *dims_gram;
PyArrayObject *knots_array = NULL;
@@ -66,10 +66,10 @@ static PyObject *BSpline_Gram(PyObject *self, PyObject *args)
dims_gram[1] = m;
gram_array = (PyArrayObject*)PyArray_SimpleNew(2, dims_gram, PyArray_DOUBLE);
- data = (double **)PyArray_DATA(gram_array);
+ data = (double *)PyArray_DATA(gram_array);
free(dims_gram);
- bspline_gram(data, knots, (int)nknots[0], m, dl, dr);
+ bspline_gram(&data, knots, (int)nknots[0], m, dl, dr);
exit:

0 comments on commit 16e7f9c

Please sign in to comment.