[Numpy-tickets] [NumPy] #383: PyArray_GETPTR C/API macros defect

NumPy numpy-tickets at scipy.net
Sun Nov 19 16:09:31 CST 2006

#383: PyArray_GETPTR C/API macros defect
 Reporter:  yairchu     |       Owner:  somebody          
     Type:  defect      |      Status:  new               
 Priority:  normal      |   Milestone:                    
Component:  numpy.core  |     Version:                    
 Severity:  major       |    Keywords:  C API macro GETPTR
 missing () for the i of PyArray_GETPTR1(obj, i)
 currently = (void *)(PyArray_BYTES(obj)+i*PyArray_STRIDES(obj)[0])
 should turn i to (i)

 might create hard to find bugs like it did for me :)

Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/383>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list