diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-03-24 18:18:38 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-03-24 18:18:38 +0000 |
commit | 3ec490dabbd7c18b55947df1a89f042bb44d3911 (patch) | |
tree | 9d2a88baa80fa71ae92660b1e8be2a9bf900bb77 /numpy | |
parent | c0187e0d745e233e2610b72098d9f99154e7975d (diff) | |
download | numpy-3ec490dabbd7c18b55947df1a89f042bb44d3911.tar.gz |
Fix wrong function name. These functions aren't used a present so this just
fixes a warning.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/private/npy_3kcompat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/private/npy_3kcompat.h b/numpy/core/src/private/npy_3kcompat.h index 3e7bcee19..e49beab27 100644 --- a/numpy/core/src/private/npy_3kcompat.h +++ b/numpy/core/src/private/npy_3kcompat.h @@ -234,7 +234,7 @@ NpyCapsule_FromVoidPtr(void *ptr, void (*dtor)(PyObject *)) static NPY_INLINE PyObject * NpyCapsule_FromVoidPtrAndDesc(void *ptr, void* context, void (*dtor)(PyObject *)) { - PyObject *ret = NpyCapsule_New(ptr, dtor); + PyObject *ret = NpyCapsule_FromVoidPtr(ptr, dtor); if (ret != NULL && PyCapsule_SetContext(ret, context) != 0) { PyErr_Clear(); Py_DECREF(ret); |