[Numpy-discussion] 64bit issue?

Charles R Harris charlesr.harris at gmail.com
Tue Aug 5 14:32:02 EDT 2008


On Tue, Aug 5, 2008 at 1:14 PM, Charles Doutriaux <doutriaux1 at llnl.gov>wrote:

> Hi chuck, works great on 32bit
>
>  int *dims;
>    dims = (int *)malloc(self->nd*sizeof(int));
>
> and self->nd is 3
>

Should be

npy_intp *dims;

npy_intp will be 32 bits/ 64 bits depending on the architecture, ints tend
to always be 32 bits.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080805/054ded50/attachment.html>


More information about the NumPy-Discussion mailing list