Revaz Yves wrote: > Matthieu Brucher wrote: > >> Hi, >> >> What type is pos->dimensions in your case ? It may be long (64bits >> long) instead of the expected int (32bits) or something like that ? >> >> > yes, > pos->dimensions is a 64bits long > while PyArray_FromDims expects 32bits int. > > Why is it so ? > PyArray_FromDims is backward compatible Numeric API which did not support 64-bit correctly.
PyArray_SimpleNew is the equivalent that accepts 64-bit dimensions information and is what you should be using. -Travis O. _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
