summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-06-02 07:12:43 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-06-02 07:12:43 +0000
commitf68932abd4c908f8f312c5d4c515630b2976a669 (patch)
treec53882e9bca97008531234ac9f806217a0422851 /numpy
parentf116819dfb4d974e6c4878e3d40420b8b4a2951f (diff)
downloadnumpy-f68932abd4c908f8f312c5d4c515630b2976a669.tar.gz
Fix syntax errors from last commit.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/arrayobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 9b08b6b35..e3ec10e53 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -1217,14 +1217,14 @@ static int
PyArray_RegisterCastFunc(PyArray_Descr *descr, int totype,
PyArray_VectorUnaryFunc *castfunc)
{
- PyObject *cobj;
+ PyObject *cobj, *key;
int ret;
if (descr->f->castdict == NULL) {
descr->f->castdict = PyDict_New();
}
key = PyInt_FromLong(totype);
if (PyErr_Occurred()) return -1;
- cobj = PyCObject_FromVoidPtr((void *)castfunc);
+ cobj = PyCObject_FromVoidPtr((void *)castfunc, NULL);
if (cobj == NULL) {Py_DECREF(key); return -1;}
ret = PyDict_SetItem(descr->f->castdict, key, cobj);
Py_DECREF(key);