[Numpy-discussion] 64bit issue?
Charles R Harris
charlesr.harris@gmail....
Tue Aug 5 13:32:02 CDT 2008
On Tue, Aug 5, 2008 at 1:14 PM, Charles Doutriaux <doutriaux1@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://projects.scipy.org/pipermail/numpy-discussion/attachments/20080805/054ded50/attachment.html
More information about the Numpy-discussion
mailing list