[Numpy-discussion] 64bit issue?

Charles Doutriaux doutriaux1@llnl....
Tue Aug 5 13:45:35 CDT 2008


Wow! It did it!

Is there other little tricks like this one I should track?

Thanks a lot! It would have take me days to track this one!

C.


Charles R Harris wrote:
>
>
> On Tue, Aug 5, 2008 at 1:14 PM, Charles Doutriaux <doutriaux1@llnl.gov 
> <mailto: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
> ------------------------------------------------------------------------
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http:// projects.scipy.org/mailman/listinfo/numpy-discussion
>   



More information about the Numpy-discussion mailing list