[Numpy-tickets] [NumPy] #255: Better declaration of the PyArray_SETITEM macro
NumPy
numpy-tickets at scipy.net
Fri Aug 18 07:18:55 CDT 2006
#255: Better declaration of the PyArray_SETITEM macro
--------------------+-------------------------------------------------------
Reporter: faltet | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Keywords:
--------------------+-------------------------------------------------------
In include/numpy/arrayobject.h I think that the next patch should be
applied:
{{{
--- numpy/core/include/numpy/arrayobject.h.orig 2006-08-18
12:43:24.000000000 +0200
+++ numpy/core/include/numpy/arrayobject.h 2006-08-18
12:44:45.000000000 +0200
@@ -1258,8 +1258,8 @@
((PyArrayObject *)(obj))->descr->f->getitem((char *)itemptr, \
(PyArrayObject *)obj);
#define PyArray_SETITEM(obj,itemptr,v) \
- (obj)->descr->f->setitem((PyObject *)v,(char *)(itemptr),
\
- (PyArrayObject *)(obj));
+ ((PyArrayObject *)(obj))->descr->f->setitem((PyObject *)v,(char
*)(itemptr), \
+ (PyArrayObject *)(obj));
}}}
Cheers!
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/255>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list